00001 /* Try to write to the code segment. 00002 The process must be terminated with -1 exit code. */ 00003 00004 #include "tests/lib.h" 00005 #include "tests/main.h" 00006 00007 void 00008 test_main (void) 00009 { 00010 *(int *) test_main = 0; 00011 fail ("writing the code segment succeeded"); 00012 }