diff options
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Parser/objc-foreach-error-1.m | 3 | ||||
| -rw-r--r-- | clang/test/Sema/missing-string-interface.m | 7 | ||||
| -rw-r--r-- | clang/test/Sema/objc-property-8.m | 2 |
3 files changed, 2 insertions, 10 deletions
diff --git a/clang/test/Parser/objc-foreach-error-1.m b/clang/test/Parser/objc-foreach-error-1.m index 693f12e2ffe..76251abf33f 100644 --- a/clang/test/Parser/objc-foreach-error-1.m +++ b/clang/test/Parser/objc-foreach-error-1.m @@ -17,8 +17,7 @@ int LOOP(); @implementation MyList (BasicTest) // expected-error {{cannot find interface declaration for 'MyList'}} - (void)compilerTestAgainst { MyList * el; // expected-error {{use of undeclared identifier 'MyList'}} - for (el in @"foo") // expected-error {{use of undeclared identifier 'el'}} \ - // expected-error {{cannot find interface declaration for 'NSConstantString'}} + for (el in @"foo") // expected-error {{use of undeclared identifier 'el'}} { LOOP(); } } @end diff --git a/clang/test/Sema/missing-string-interface.m b/clang/test/Sema/missing-string-interface.m deleted file mode 100644 index f96fb4c2e4a..00000000000 --- a/clang/test/Sema/missing-string-interface.m +++ /dev/null @@ -1,7 +0,0 @@ -// RUN: clang %s -verify -fsyntax-only - -@class NSString; - -// GCC considers this an error, so clang will... -NSString *s = @"123"; // expected-error: {{cannot find interface declaration for 'NSConstantString'}} - diff --git a/clang/test/Sema/objc-property-8.m b/clang/test/Sema/objc-property-8.m index a081f39ec4f..8ca0afc1ed4 100644 --- a/clang/test/Sema/objc-property-8.m +++ b/clang/test/Sema/objc-property-8.m @@ -68,7 +68,7 @@ extern NSString *PBXWindowDidChangeFirstResponderNotification; @synthesize query = _query; - (void) _clearQuery { - [self.query removeObserver: self forKeyPath: @"matches"]; // expected-error{{cannot find interface declaration for 'NSConstantString'}} + [self.query removeObserver: self forKeyPath: @"matches"]; } @end |

