r348471 - Add test for ObjC generics
Stephen Kelly via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 6 01:23:59 PST 2018
Author: steveire
Date: Thu Dec 6 01:23:59 2018
New Revision: 348471
URL: http://llvm.org/viewvc/llvm-project?rev=348471&view=rev
Log:
Add test for ObjC generics
Modified:
cfe/trunk/test/AST/ast-dump-decl.m
Modified: cfe/trunk/test/AST/ast-dump-decl.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-decl.m?rev=348471&r1=348470&r2=348471&view=diff
==============================================================================
--- cfe/trunk/test/AST/ast-dump-decl.m (original)
+++ cfe/trunk/test/AST/ast-dump-decl.m Thu Dec 6 01:23:59 2018
@@ -81,6 +81,14 @@
// CHECK-NEXT: ObjCProtocol{{.*}} 'P'
// CHECK-NEXT: ObjCMethodDecl{{.*}} bar
+ at interface TestGenericInterface<T> : A<P> {
+}
+ at end
+// CHECK: ObjCInterfaceDecl{{.*}} TestGenericInterface
+// CHECK-NEXT: -ObjCTypeParamDecl
+// CHECK-NEXT: -super ObjCInterface
+// CHECK-NEXT: -ObjCProtocol
+
@implementation TestObjCClass (TestObjCCategoryDecl)
- (void) bar {
}
More information about the cfe-commits
mailing list