1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-03 10:31:37 -08:00
emacs/mps/test/misc/1.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

39 lines
507 B
C

/*
TEST_HEADER
id = $Id$
summary = access location in last 4 bytes of address space.
language = c
link = testlib.o
OUTPUT_SPEC
abort = true
END_HEADER
*/
#include <stdio.h>
#include "testlib.h"
#include "mpsavm.h"
void *stackpointer;
static void test(void)
{
mps_arena_t arena;
int *p;
cdie(mps_arena_create(&arena, mps_arena_class_vm(), 64*1024uL*1024uL),
"create arena");
p = (int *)-4;
putchar(*p);
}
int main(void)
{
void *m;
stackpointer=&m;
easy_tramp(test);
return 0;
}