mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-27 07:41:28 -08:00
$HopeName$ -> $Id$ space -> arena mps_arena_create now takes three arguments /usr/local/perl -> /usr/bin/perl -w Missing #include <stdio.h> in several tests Bogus closedir(DIR); in script/clib Copied from Perforce Change: 182199 ServerID: perforce.ravenbrook.com
39 lines
513 B
C
39 lines
513 B
C
/*
|
|
TEST_HEADER
|
|
id = $Id$
|
|
summary = access location in last 4 bytes of address space.
|
|
language = c
|
|
link = testlib.o
|
|
OUTPUT_SPEC
|
|
memoryerror = 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;
|
|
}
|
|
|