Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.other/goto1.C

raw
1 // { dg-do assemble }
2 // Origin: Mark Mitchell <[email protected]>
3
4 struct S
5 {
6 S ();
7 ~S ();
8 };
9
10 void f ()
11 {
12 {
13 S s1; // { dg-message "" } skips initialization
14
15 t: // { dg-error "" } jump to label
16 S s2;
17 ;
18 }
19
20 goto t; // { dg-message "" } from here
21 }