/*
TEST_HEADER
id = $Id: //info.ravenbrook.com/project/mps/custom/cet/branch/2014-10-26/sc/test/misc/0.c#1 $
summary = cause segv and see if has usual effect
language = c
link = testlib.o
OUTPUT_SPEC
memoryerror = true
END_HEADER
*/
#include <stdio.h>
#include "mps.h"
#include "testlib.h"
void *stackpointer;
static void test(void)
{
mps_arena_t arena;
int *p;
cdie(mps_arena_create(&arena, mps_arena_class_vm(), mmqaArenaSIZE), "create arena");
p = NULL;
printf("%i", *p);
}
int main(void)
{
void *m;
stackpointer=&m;
easy_tramp(test);
return 0;
}