1 /* { dg-do compile } */
2 /* { dg-options "-Wunused" } */
7 int a
; /* { dg-warning "set but not used" } */
17 int a
; /* { dg-warning "set but not used" } */
19 int c
; /* { dg-warning "set but not used" } */
41 int a
[2]; /* { dg-warning "set but not used" } */
73 struct S s
; /* { dg-warning "set but not used" } */
93 extern int foo11 (int *);
107 a
; /* { dg-warning "no effect" } */
111 f13 (void (*x
) (void))
119 f14 (void (*x
) (void))
121 void (*a
) (void); /* { dg-warning "set but not used" } */
125 extern void foo15 (int *);
135 extern void foo16 (int **);
141 int *b
[] = { a
, a
+ 2 };
148 long a
; /* { dg-warning "set but not used" } */
156 int a
; /* { dg-warning "set but not used" } */
162 f19 (int x
, int y
, int z
)
174 static int a
[] = { 3, 4, 5, 6 };
175 static int b
[] = { 4, 5, 6, 7 };
176 static int c
[] = { 5, 6, 7, 8 }; /* { dg-warning "set but not used" } */