Add test for ObjC generics

llvm-svn: 348471
This commit is contained in:
Stephen Kelly 2018-12-06 09:23:59 +00:00
parent d6518a89e0
commit fe8231ecca
1 changed files with 8 additions and 0 deletions

View File

@ -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 {
}