mud/fluffos-2.23-ds03/testsuite/single/tests/efuns/allocate_buffer.c
2020-09-06 05:43:07 -07:00

10 lines
174 B
C

void do_tests() {
#ifndef __NO_BUFFER_TYPE__
int i = random(100000);
ASSERT(sizeof(allocate_buffer(i)) == i);
ASSERT(catch(allocate_buffer(-20)));
#endif
}