Copyright clean-up (part 1):
[AROS.git] / compiler / purify / test8.c
blobf19be22e724f56f62c7c90a41311cc57a4e7a24e
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <stdio.h>
8 int * x;
9 const char str[] = "hallo";
11 static const char str2[] = "hallo";
13 int main (int argc, char ** argv)
15 int c;
16 int * y;
18 x = &c;
19 y = x;
21 c = *y; /* UMR */
23 c = str[3]; /* ok */
24 c = str[-1]; /* ILR */
25 c = str[8]; /* ILR */
27 c = str2[3]; /* ok */
28 c = str2[-1]; /* ILR */
29 c = str2[8]; /* ILR */
31 return 0;