1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-15 07:41:09 -08:00
emacs/mps/qa/function/71.c
Richard Tucker 52df96658a New unit
new test

Copied from Perforce
 Change: 19072
 ServerID: perforce.ravenbrook.com
1997-12-08 17:28:52 +00:00

31 lines
447 B
C

/* TEST_HEADER
summary = create 1000 spaces and destroy each one just before the next is created
language = c
link = testlib.o
END_HEADER
*/
#include "testlib.h"
static void test(void)
{
mps_space_t space;
int p;
die(mps_space_create(&space), "create");
for (p=0; p<1000; p++)
{
mps_space_destroy(space);
die(mps_space_create(&space), "create");
comment("%i", p);
}
}
int main(void)
{
easy_tramp(test);
pass();
return 0;
}