Split errstrings.h from error.h to avoid texts becoming included in several object...
[AROS.git] / compiler / purify / t_illread2.c
blobad960ac1f65b379f7bd5077d576a8f3681281d1a
1 #include <stdio.h>
3 int main (int argc, char ** argv)
5 int * x;
6 int a, b;
8 x = &b;
10 b = 0;
12 a = *x++; /* ok */
13 a = *x++; /* illegal: Uninitialized memory */
15 x = (int *)&main;
17 a = *x; /* illegal: Code read */
19 x = (int *)0xDEADBEEF;
21 a = *x; /* illegal: Illegal pointer */