13 lines
241 B
C
13 lines
241 B
C
|
/* Try to write to the code segment.
|
||
|
The process must be terminated with -1 exit code. */
|
||
|
|
||
|
#include "tests/lib.h"
|
||
|
#include "tests/main.h"
|
||
|
|
||
|
void
|
||
|
test_main (void)
|
||
|
{
|
||
|
*(int *) test_main = 0;
|
||
|
fail ("writing the code segment succeeded");
|
||
|
}
|