]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/Wunused-var-1.c
replace ISL with isl
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / Wunused-var-1.c
CommitLineData
ebfbbdc5
JJ
1/* { dg-do compile } */
2/* { dg-options "-Wunused" } */
3
ebfbbdc5 4int
03a904b5 5f1 (void)
ebfbbdc5
JJ
6{
7 int a;
03a904b5
JJ
8 int foo (void)
9 {
10 return a;
11 }
ebfbbdc5 12 a = 1;
03a904b5 13 return foo ();
ebfbbdc5
JJ
14}
15
16void
03a904b5 17f2 (void)
ebfbbdc5
JJ
18{
19 int a; /* { dg-warning "set but not used" } */
03a904b5
JJ
20 void foo (void)
21 {
22 a = 2;
23 }
24 a = 1;
25 foo ();
ebfbbdc5 26}