mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-19 01:10:57 -08:00
New unit
because Copied from Perforce Change: 17341 ServerID: perforce.ravenbrook.com
This commit is contained in:
parent
cda39d7153
commit
cc60952efe
1 changed files with 31 additions and 0 deletions
31
mps/qa/misc/0.c
Normal file
31
mps/qa/misc/0.c
Normal 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;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue