1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-19 01:10:57 -08:00
because

Copied from Perforce
 Change: 17341
 ServerID: perforce.ravenbrook.com
This commit is contained in:
Richard Tucker 1997-03-21 14:14:24 +00:00
parent cda39d7153
commit cc60952efe

31
mps/qa/misc/0.c Normal file
View file

@ -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;
}