2 // { dg-options "-Wunused" }
8 int a; // { dg-warning "set but not used" }
19 int a; // { dg-warning "set but not used" }
21 int c; // { dg-warning "set but not used" }
46 int a[2]; // { dg-warning "set but not used" }
81 struct S s; // { dg-warning "set but not used" }
103 extern int foo11 (int *);
119 a; // { dg-warning "statement has no effect" }
124 f13 (void (*x) (void))
133 f14 (void (*x) (void))
135 void (*a) (void); // { dg-warning "set but not used" }
139 extern void foo15 (int *);
150 extern void foo16 (int **);
157 int *b[] = { a, a + 2 };
165 long a; // { dg-warning "set but not used" }
174 int a; // { dg-warning "set but not used" }
181 f19 (int x, int y, int z)
194 static int a[] = { 3, 4, 5, 6 };
195 static int b[] = { 4, 5, 6, 7 };
196 static int c[] = { 5, 6, 7, 8 }; // { dg-warning "set but not used" }
225 (void) f19<0> (0, 0, 0);