diff options
Diffstat (limited to 'test/CXX/stmt.stmt/stmt.dcl/p3-0x.cpp')
-rw-r--r-- | test/CXX/stmt.stmt/stmt.dcl/p3-0x.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CXX/stmt.stmt/stmt.dcl/p3-0x.cpp b/test/CXX/stmt.stmt/stmt.dcl/p3-0x.cpp index 574cb40c4670..d7726c944cdb 100644 --- a/test/CXX/stmt.stmt/stmt.dcl/p3-0x.cpp +++ b/test/CXX/stmt.stmt/stmt.dcl/p3-0x.cpp @@ -30,11 +30,11 @@ struct Y { void f(); void test_Y() { - goto end; // expected-error{{goto into protected scope}} + goto end; // expected-error{{cannot jump from this goto statement to its label}} Y y; // expected-note{{jump bypasses variable with a non-trivial destructor}} end: f(); - goto inner; // expected-error{{goto into protected scope}} + goto inner; // expected-error{{cannot jump from this goto statement to its label}} { Y y2; // expected-note{{jump bypasses variable with a non-trivial destructor}} inner: |