summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/goto2.C
blob: 07adbb95dcfd521b8149c971f4c92634733a1f7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// { dg-do assemble  }
// { dg-options "-Wunused" }
// Origin: Mark Mitchell <mark@codesourcery.com>

struct S
{
  S ();
  ~S ();
};

void f ()
{
  {
    S s1;
    int j; // { dg-warning "" } unused
    
  t:       // { dg-warning "" } unused
    S s2;
  }
}