summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.old-deja/g++.other/goto2.C
blob: 2b95273cd8b5e2563d3d31c4a9dff158eac92e31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Build don't link:
// Origin: Mark Mitchell <mark@codesourcery.com>
// Special g++ Options: -Wunused

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

void f ()
{
  {
    S s1;
    int j; // WARNING - unused
    
  t:       // WARNING - unused
    S s2;
  }
}
OpenPOWER on IntegriCloud