summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/warn/Wunused-6.C
blob: 58a3f642bc34dfc7dbcd9d7f1498fb4af8c6c21c (plain)
1
2
3
4
5
6
7
8
9
10
11
/* PR middle-end/14203 */
/* { dg-do compile } */
/* { dg-options "-Wall" } */

void foo()
{
  if (false)
    if (int i=0)  // { dg-warning "unused" "" }
      int j=0;    // { dg-warning "unused" "" }
}