blob: 5072cec10ea5914b3ed68e6f60dae23361f252e3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* 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");
}
|