diff options
Diffstat (limited to 'test/CXX/stmt.stmt/stmt.dcl/p3.cpp')
-rw-r--r-- | test/CXX/stmt.stmt/stmt.dcl/p3.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CXX/stmt.stmt/stmt.dcl/p3.cpp b/test/CXX/stmt.stmt/stmt.dcl/p3.cpp index f52e3b6d142d..4bcc648e84aa 100644 --- a/test/CXX/stmt.stmt/stmt.dcl/p3.cpp +++ b/test/CXX/stmt.stmt/stmt.dcl/p3.cpp @@ -29,7 +29,7 @@ struct Y { }; 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: return; @@ -40,7 +40,7 @@ struct Z { }; void test_Z() { - goto end; // expected-error{{goto into protected scope}} + goto end; // expected-error{{cannot jump from this goto statement to its label}} Z z; // expected-note{{jump bypasses initialization of non-POD variable}} end: return; |