aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-02-15 18:34:15 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-02-15 18:34:15 +0000
commitdb546fa2ce65dd2e275fc3fdee961767d53f77cf (patch)
treed976dd50f55eb39691cc52c264f58ceab1f1df91 /test
parent820b23dc924a4ae7af07d5a75d6b1d781c267d57 (diff)
Fix crash-on-invalid where a ParenListExpr shows up as a message receiver
while trying to do error recovery. rdar://13207886 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175282 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/SemaObjC/message.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/SemaObjC/message.m b/test/SemaObjC/message.m
index 621a18fc9b..4015690bd0 100644
--- a/test/SemaObjC/message.m
+++ b/test/SemaObjC/message.m
@@ -98,3 +98,11 @@ void foo4() {
[X rect]; // expected-warning {{receiver type 'struct objc_object *' is not 'id' or interface pointer, consider casting it to 'id'}} expected-warning {{method '-rect' not found (return type defaults to 'id')}}
}
+// rdar://13207886
+void foo5(id p) {
+ p
+ [(id)(p) bar]; // expected-error {{missing '['}} \
+ // expected-error {{expected ']'}} \
+ // expected-note {{to match this '['}} \
+ // expected-warning {{instance method '-bar' not found}}
+}