attempt to fix include copy
[AROS.git] / compiler / purify / test3.c
blobdb8cdb17da7408765338e9c735f78aa6cae18751
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 char * str;
11 int t;
13 if (argc == 1)
15 printf ("Too few arguments\n");
16 return 10;
19 str = "Hello world.\n";
21 printf ("%s", str);
23 printf ("&argc=%p\n", &argc);
24 printf ("argv=%p\n", argv);
26 for (t=0; t<argc; t++)
27 printf ("Arg %d: %s\n", t, argv[t]);
29 argc = 1;
30 *argv = "test";
32 argv[1][1] = 'x'; /* Illegal Write */
34 return 0;