diff --git a/mps/qa/misc/0.c b/mps/qa/misc/0.c new file mode 100644 index 00000000000..64b44843bf1 --- /dev/null +++ b/mps/qa/misc/0.c @@ -0,0 +1,31 @@ +/* test cause segv and see if has usual effect + language c + link testlib.o + memoryerror=true +*/ + +#include "mps.h" +#include "testlib.h" + +void *stackpointer; + +static void test(void) +{ + mps_space_t space; + int *p; + + cdie(mps_space_create(&space), "create space"); + + p = NULL; + printf("%i", *p); +} + +int main(void) +{ + void *m; + stackpointer=&m; + + easy_tramp(test); + return 0; +} +