00001 /* This program attempts to write to memory at an address that is not mapped. 00002 This should terminate the process with a -1 exit code. */ 00003 00004 #include "tests/lib.h" 00005 #include "tests/main.h" 00006 00007 void 00008 test_main (void) 00009 { 00010 *(int *)NULL = 42; 00011 fail ("should have exited with -1"); 00012 }