Warn pointer to signed integer cast for ilp32
[official-gcc.git] / gcc / testsuite / gcc.dg / Wunused-local-typedefs.c
blob4c8c15ed20664527589f42c56a0cd6e32bb72370
1 /* Origin PR c/53702
2 { dg-options "-Wunused-local-typedefs" }
3 { dg-do compile }
4 */
6 /* Only test nested functions for C. More tests that work for C and C++
7 can be found in c-c++-common.
8 */
10 void
11 test0 ()
13 typedef int foo; /* { dg-warning "locally defined but not used" } */
14 void f ()
19 void
20 test1 ()
22 void f ()
24 typedef int foo; /* { dg-warning "locally defined but not used" } */
29 void
30 test2 ()
32 void f ()
35 typedef int foo; /* { dg-warning "locally defined but not used" } */