diff options
Diffstat (limited to 'clang/test/ARCMT/checking.m')
-rw-r--r-- | clang/test/ARCMT/checking.m | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/clang/test/ARCMT/checking.m b/clang/test/ARCMT/checking.m index 3ad911e10a8..b0d3243254c 100644 --- a/clang/test/ARCMT/checking.m +++ b/clang/test/ARCMT/checking.m @@ -178,13 +178,12 @@ void test12(id collection) { } void test6(unsigned cond) { - // FIXME: Fix this automatically ? switch (cond) { case 0: ; - id x; // expected-note {{jump bypasses initialization of retaining variable}} + id x; - case 1: // expected-error {{switch case is in protected scope}} + case 1: break; } } @@ -293,10 +292,10 @@ id test9(Test9 *v) { void rdar9491791(int p) { switch (p) { case 3:; - NSObject *o = [[NSObject alloc] init]; // expected-note {{jump bypasses initialization of retaining variable}} + NSObject *o = [[NSObject alloc] init]; [o release]; break; - default: // expected-error {{switch case is in protected scope}} + default: break; } } |