OSDN Git Service

/cp
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / goto1.C
1 // { dg-do assemble  }
2 // Origin: Mark Mitchell <mark@codesourcery.com>
3
4 struct S
5 {
6   S ();
7   ~S ();
8 };
9
10 void f ()
11 {
12   {
13     S s1; // { dg-error "" } skips initialization
14   
15   t:      // { dg-error "" } jump to label
16     S s2;
17     ;
18   }
19
20   goto t; // { dg-error "" } from here
21 }