tools/adflib: build only host variant which is used by Sam440 target
[AROS.git] / compiler / purify / t_illread2.c
blob5ce65a8209da089c404767d78471416247488725
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <stdio.h>
8 int main (int argc, char ** argv)
10 int * x;
11 int a, b;
13 x = &b;
15 b = 0;
17 a = *x++; /* ok */
18 a = *x++; /* illegal: Uninitialized memory */
20 x = (int *)&main;
22 a = *x; /* illegal: Code read */
24 x = (int *)0xDEADBEEF;
26 a = *x; /* illegal: Illegal pointer */