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 | fe8231ecca4ac16fface1420280c720e36b36cc6 (patch) | |
tree | 27f895d61a92e6a9900fd095d0d464a91bcce398 | |
parent | d6518a89e0967aeb09a03a87c1164256f09a9be2 (diff) | |
download | bcm5719-llvm-fe8231ecca4ac16fface1420280c720e36b36cc6.tar.gz bcm5719-llvm-fe8231ecca4ac16fface1420280c720e36b36cc6.zip |
Add test for ObjC generics
llvm-svn: 348471
-rw-r--r-- | clang/test/AST/ast-dump-decl.m | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/AST/ast-dump-decl.m b/clang/test/AST/ast-dump-decl.m index 4cfb8aa0c41..b95ca1a7608 100644 --- a/clang/test/AST/ast-dump-decl.m +++ b/clang/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 { } |