1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-28 08:11:05 -08:00
emacs/mps/test/misc/2.c
Gareth Rees b7e31828db Memoryerror is only implemented on windows, so test for abort instead.
Copied from Perforce
 Change: 191575
 ServerID: perforce.ravenbrook.com
2016-04-22 17:17:53 +01:00

40 lines
503 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"
void *stackpointer;
static void test(void)
{
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)
{
void *m;
stackpointer=&m;
easy_tramp(test);
return 0;
}