00001 /* This program attempts to read 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 msg ("Congratulations - you have successfully dereferenced NULL: %d", 00011 *(int *)NULL); 00012 fail ("should have exited with -1"); 00013 }