/* 
TEST_HEADER
 id = $Id: //info.ravenbrook.com/project/mps/version/1.113/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;
}

