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

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

void f ()
{
  {
    S s1; // ERROR - skips initialization
  
  t:	  // ERROR - jump to label
    S s2;
    ;
  }

  goto t; // ERROR - from here
}
OpenPOWER on IntegriCloud