allocate_buffer.c
ds2.10/fluffos-2.16-ds05/testsuite/single/tests/efuns/allocate_buffer.c · 170 B
From the archive ds2.10.zip
Download the archive « Back to the archive contents
void do_tests() {
#ifndef __NO_BUFFER_TYPE__
int i = random(100000);
ASSERT(sizeof(allocate_buffer(i)) == i);
ASSERT(catch(allocate_buffer(-20)));
#endif
}