more warning testcases
[cparser] / parsetest / nowarn / write_only.c
1 struct X { int i[10]; int j; struct X* next; };
2
3 void f(int parm)
4 {{
5 #if 0
6         parm++;
7         int x = 0;
8         int y = 1;
9         x = x + y;
10         for (int z = 0;; ++z) {
11                 z;
12         }
13         int* a = 0;
14         a = &a[*a];
15         int* b = 0;
16         b = b[*b] = 0;
17         for (struct X* px = 0;; px = px->next) {}
18         struct X* x2 = 0;
19         x2->next = 0;
20         int c;
21         c = *&c = 0;
22         int d = 23;
23         int e = 42;
24         asm("" : "+r" (e) : "r" (d));
25         struct X* x3 = 0;
26         x3->i[2] = 0;
27         int i[10];
28         i[0] = 1;
29         int j[10];
30         j[j[j[0]]] = 23;
31 #endif
32         struct X* x4 = 0;
33         x4->j++;
34 }}