mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-05 19:31:02 -08:00
Use mps_root_create_thread in preference to mps_root_create_reg. New test harness run_test passes pointer to cold end of stack, since this is needed by many tests. Copied from Perforce Change: 195917
34 lines
465 B
C
34 lines
465 B
C
/*
|
|
TEST_HEADER
|
|
id = $Id$
|
|
summary = access negative location.
|
|
language = c
|
|
link = testlib.o
|
|
parameters = NUM=1
|
|
OUTPUT_SPEC
|
|
abort = true
|
|
END_HEADER
|
|
*/
|
|
|
|
#include "testlib.h"
|
|
#include "mpsavm.h"
|
|
|
|
static void test(void *stack_pointer)
|
|
{
|
|
mps_arena_t arena;
|
|
char *p;
|
|
|
|
cdie(mps_arena_create(&arena, mps_arena_class_vm(), 64*1024uL*1024uL),
|
|
"create arena");
|
|
|
|
p = (char *)-NUM;
|
|
*p = 0;
|
|
comment("%p", *p);
|
|
}
|
|
|
|
int main(void)
|
|
{
|
|
run_test(test);
|
|
return 0;
|
|
}
|
|
|