1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-13 23:10:26 -08:00
emacs/mps/qa/function/121.c
Richard Tucker 7e4391159c Add id to header
Copied from Perforce
 Change: 20304
 ServerID: perforce.ravenbrook.com
1998-10-29 12:23:33 +00:00

44 lines
728 B
C

/*
TEST_HEADER
id = $HopeName$
summary = very small arenas
language = c
link = testlib.o
OUTPUT_SPEC
result = pass
END_HEADER
*/
#include "testlib.h"
#include "mpsavm.h"
#include "mpscmv.h"
void *stackpointer;
mps_arena_t arena;
mps_thr_t thread;
mps_pool_t pool;
mps_pool_t pools[100];
static void test(void) {
int i;
for (i=64; i>0; i--) {
comment("Trying arena of %dKB.", i);
cdie(mps_arena_create(&arena, mps_arena_class_vm(), (size_t) (1024*i)),
"create arena");
cdie(mps_thread_reg(&thread, arena), "register thread");
mps_thread_dereg(thread);
mps_arena_destroy(arena);
}
}
int main(void)
{
void *m;
stackpointer=&m; /* hack to get stack pointer */
easy_tramp(test);
pass();
return 0;
}