Trust uboot's device list only if it does not look suspicious.
[AROS.git] / compiler / purify / test3.c
blob35adc49818961b0601247cd7b6aabef00dad3818
1 #include <stdio.h>
3 int main (int argc, char ** argv)
5 char * str;
6 int t;
8 if (argc == 1)
10 printf ("Too few arguments\n");
11 return 10;
14 str = "Hello world.\n";
16 printf ("%s", str);
18 printf ("&argc=%p\n", &argc);
19 printf ("argv=%p\n", argv);
21 for (t=0; t<argc; t++)
22 printf ("Arg %d: %s\n", t, argv[t]);
24 argc = 1;
25 *argv = "test";
27 argv[1][1] = 'x'; /* Illegal Write */
29 return 0;