diff options
author | Stephen Kelly <steveire@gmail.com> | 2018-12-06 09:23:59 +0000 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2018-12-06 09:23:59 +0000 |
commit | e03e9db1ed1ed1ab0d798e61333e51119c2edf8b (patch) | |
tree | b25abf68a9b29860b7889ce6c3d79cc33cc4ccef /test/AST | |
parent | ba4c656a2e1227dfa9a49347578101f5a739ace1 (diff) | |
download | clang-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.m | 8 |
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 { } |