summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/test/Parser/objc-at-implementation-eof-crash.m2
-rw-r--r--clang/test/Parser/objc-at-interface-eof-crash.m2
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Parser/objc-at-implementation-eof-crash.m b/clang/test/Parser/objc-at-implementation-eof-crash.m
index 0dcece81795..76e56c10703 100644
--- a/clang/test/Parser/objc-at-implementation-eof-crash.m
+++ b/clang/test/Parser/objc-at-implementation-eof-crash.m
@@ -13,7 +13,7 @@
@implementation ClassB // expected-note {{implementation started here}}
- (void) method:(ClassA *)mgr { // expected-note {{to match this '{'}}
- mgr fileExistsAtPath:0
+ [mgr fileExistsAtPath:0
} // expected-error {{expected ']'}}
@implementation ClassC // \
diff --git a/clang/test/Parser/objc-at-interface-eof-crash.m b/clang/test/Parser/objc-at-interface-eof-crash.m
index 485e810494b..2c7bfd688f0 100644
--- a/clang/test/Parser/objc-at-interface-eof-crash.m
+++ b/clang/test/Parser/objc-at-interface-eof-crash.m
@@ -13,7 +13,7 @@
@implementation ClassB // expected-note {{implementation started here}}
- (void) method:(ClassA *)mgr { // expected-note {{to match this '{'}}
- mgr fileExistsAtPath:0
+ [mgr fileExistsAtPath:0
} // expected-error {{expected ']'}}
@interface ClassC // \
OpenPOWER on IntegriCloud