summaryrefslogtreecommitdiff
path: root/test/SemaObjCXX
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2016-06-03 16:59:13 +0000
committerHans Wennborg <hans@hanshq.net>2016-06-03 16:59:13 +0000
commite6a67dfc075f4be72cb8cae559fbe904e894689b (patch)
tree5c3749cad1a33d08f8ca61148826ac437f30a280 /test/SemaObjCXX
parent334678de6907bd37087c33d54accac52a94bd9ce (diff)
Obj-C: Fix assert-on-invalid (PR27822)
Clang would assert when isObjCInstancetype() was called on a tok::annot_cxxscope token. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@271688 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaObjCXX')
-rw-r--r--test/SemaObjCXX/instancetype.mm7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/SemaObjCXX/instancetype.mm b/test/SemaObjCXX/instancetype.mm
index 89ff2b4b03..f61d6bf4cf 100644
--- a/test/SemaObjCXX/instancetype.mm
+++ b/test/SemaObjCXX/instancetype.mm
@@ -214,3 +214,10 @@ void test_instancetype_inherited() {
return 0;
}
@end
+
+// PR27822
+@class NSString;
+namespace pr27822 { }
+@interface AXPlatformNodeCocoa
++ (NSString*)nativeRoleFromAXRole:(pr27822::UndeclaredIdentifier)role; // expected-error {{expected a type}}
+@end