[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gcc.dg / Wunused-var-1.c
blobd60dd70e57345a78167703a9720fcf052466dc61
1 /* { dg-do compile } */
2 /* { dg-options "-Wunused" } */
4 int
5 f1 (void)
7 int a;
8 int foo (void)
10 return a;
12 a = 1;
13 return foo ();
16 void
17 f2 (void)
19 int a; /* { dg-warning "set but not used" } */
20 void foo (void)
22 a = 2;
24 a = 1;
25 foo ();