00001 /* This program attempts to execute code at address 0, which 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 called NULL: %d", 00011 ((int (*)(void))NULL)()); 00012 fail ("should have exited with -1"); 00013 }