diff options
Diffstat (limited to 'test/Sema/block-literal.c')
-rw-r--r-- | test/Sema/block-literal.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Sema/block-literal.c b/test/Sema/block-literal.c index e9c2341..c303b84 100644 --- a/test/Sema/block-literal.c +++ b/test/Sema/block-literal.c @@ -33,7 +33,8 @@ void test2() { break; // expected-error {{'break' statement not in loop or switch statement}} continue; // expected-error {{'continue' statement not in loop statement}} while(1) break; // ok - goto foo; // expected-error {{goto not allowed}} + goto foo; // expected-error {{use of undeclared label 'foo'}} + a: goto a; // ok }); break; } |