summaryrefslogtreecommitdiff
path: root/test/AST
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2018-12-06 09:23:59 +0000
committerStephen Kelly <steveire@gmail.com>2018-12-06 09:23:59 +0000
commite03e9db1ed1ed1ab0d798e61333e51119c2edf8b (patch)
treeb25abf68a9b29860b7889ce6c3d79cc33cc4ccef /test/AST
parentba4c656a2e1227dfa9a49347578101f5a739ace1 (diff)
downloadclang-e03e9db1ed1ed1ab0d798e61333e51119c2edf8b.tar.gz
Add test for ObjC generics
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@348471 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/AST')
-rw-r--r--test/AST/ast-dump-decl.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/AST/ast-dump-decl.m b/test/AST/ast-dump-decl.m
index 4cfb8aa0c4..b95ca1a760 100644
--- a/test/AST/ast-dump-decl.m
+++ b/test/AST/ast-dump-decl.m
@@ -81,6 +81,14 @@
// CHECK-NEXT: ObjCProtocol{{.*}} 'P'
// CHECK-NEXT: ObjCMethodDecl{{.*}} bar
+@interface TestGenericInterface<T> : A<P> {
+}
+@end
+// CHECK: ObjCInterfaceDecl{{.*}} TestGenericInterface
+// CHECK-NEXT: -ObjCTypeParamDecl
+// CHECK-NEXT: -super ObjCInterface
+// CHECK-NEXT: -ObjCProtocol
+
@implementation TestObjCClass (TestObjCCategoryDecl)
- (void) bar {
}