summaryrefslogtreecommitdiff
path: root/test/Parser
diff options
context:
space:
mode:
authorErik Pilkington <erik.pilkington@gmail.com>2019-06-26 23:39:23 +0000
committerErik Pilkington <erik.pilkington@gmail.com>2019-06-26 23:39:23 +0000
commitc760628a81bf9f7b4dc75d4f8c1d178f7c68fe2f (patch)
tree8198a5a2ff4621eb0b3fe909bc98b1de21d43f27 /test/Parser
parenta8acc4eee5da59221134277fd10ff1f8945c985d (diff)
downloadclang-c760628a81bf9f7b4dc75d4f8c1d178f7c68fe2f.tar.gz
[ObjC] Improve error message for a malformed objc-type-name
If the type didn't exist, we used to emit a really bad error: t.m:3:12: error: expected ')' -(nullable NoSuchType)foo3; ^ rdar://50925632 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@364489 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser')
-rw-r--r--test/Parser/objc-interfaces.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Parser/objc-interfaces.m b/test/Parser/objc-interfaces.m
index 0ae17f15ee..911fa16a01 100644
--- a/test/Parser/objc-interfaces.m
+++ b/test/Parser/objc-interfaces.m
@@ -6,3 +6,6 @@
- (int*) foo2 __attribute__((deprecated)) : (int) x1 __attribute__((deprecated)); // expected-error {{expected ';' after method prototype}} expected-error {{method type specifier must start with '-' or '+'}}
@end
+@interface X
+-(nullable NoSuchType)foo3; // expected-error {{expected a type}}
+@end