allocate_buffer.c
v22.2b14/testsuite/single/tests/efuns/allocate_buffer.c · 174 B
From the archive beta.tar.gz
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
}