From e03e9db1ed1ed1ab0d798e61333e51119c2edf8b Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Thu, 6 Dec 2018 09:23:59 +0000 Subject: [PATCH] Add test for ObjC generics git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@348471 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/AST/ast-dump-decl.m | 8 ++++++++ 1 file changed, 8 insertions(+) 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 : A

{ +} +@end +// CHECK: ObjCInterfaceDecl{{.*}} TestGenericInterface +// CHECK-NEXT: -ObjCTypeParamDecl +// CHECK-NEXT: -super ObjCInterface +// CHECK-NEXT: -ObjCProtocol + @implementation TestObjCClass (TestObjCCategoryDecl) - (void) bar { } -- 2.40.0