mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-26 23:31:55 -08:00
Since we are passing a list of keyword arguments, we must call the keyword-taking function (mps_arena_create_k) and not the deprecated varargs function (mps_arena_create).
35 lines
555 B
C
35 lines
555 B
C
/*
|
|
TEST_HEADER
|
|
id = $Id$
|
|
summary = create many arenas and destroy each one just after the next is created
|
|
language = c
|
|
link = testlib.o
|
|
parameters = ARENAS=1000
|
|
END_HEADER
|
|
*/
|
|
|
|
#include "testlib.h"
|
|
|
|
static void test(void *stack_pointer)
|
|
{
|
|
mps_arena_t arena;
|
|
mps_arena_t arena1;
|
|
|
|
int p;
|
|
|
|
for (p=0; p<ARENAS; p++)
|
|
{
|
|
die(mps_arena_create_k(&arena, mps_arena_class_vm(), mps_args_none), "create");
|
|
if (p > 0)
|
|
mps_arena_destroy(arena1);
|
|
arena1=arena;
|
|
}
|
|
mps_arena_destroy(arena1);
|
|
}
|
|
|
|
int main(void)
|
|
{
|
|
run_test(test);
|
|
pass();
|
|
return 0;
|
|
}
|