This revision was automatically updated to reflect the committed changes. Closed by commit rC340465: [ASTImporter] Add test for ObjCTypeParamDecl (authored by teemperor, committed by ).
Repository: rC Clang https://reviews.llvm.org/D51059 Files: test/Import/objc-param-decl/Inputs/S.m test/Import/objc-param-decl/test.m Index: test/Import/objc-param-decl/Inputs/S.m =================================================================== --- test/Import/objc-param-decl/Inputs/S.m +++ test/Import/objc-param-decl/Inputs/S.m @@ -0,0 +1,5 @@ +@protocol NSString +@end + +@interface Dictionary <FirstParam : id <NSString>, NSString> +@end Index: test/Import/objc-param-decl/test.m =================================================================== --- test/Import/objc-param-decl/test.m +++ test/Import/objc-param-decl/test.m @@ -0,0 +1,11 @@ +// RUN: clang-import-test -dump-ast -x objective-c++ -import %S/Inputs/S.m -expression %s | FileCheck %s + +// CHECK: ObjCTypeParamDecl +// CHECK-SAME: FirstParam +// CHECK-SAME: 'id<NSString>' +// CHECK-NEXT: ObjCTypeParamDecl +// CHECK-SAME: 'id':'id' + +void expr() { + Dictionary *d; +}
Index: test/Import/objc-param-decl/Inputs/S.m =================================================================== --- test/Import/objc-param-decl/Inputs/S.m +++ test/Import/objc-param-decl/Inputs/S.m @@ -0,0 +1,5 @@ +@protocol NSString +@end + +@interface Dictionary <FirstParam : id <NSString>, NSString> +@end Index: test/Import/objc-param-decl/test.m =================================================================== --- test/Import/objc-param-decl/test.m +++ test/Import/objc-param-decl/test.m @@ -0,0 +1,11 @@ +// RUN: clang-import-test -dump-ast -x objective-c++ -import %S/Inputs/S.m -expression %s | FileCheck %s + +// CHECK: ObjCTypeParamDecl +// CHECK-SAME: FirstParam +// CHECK-SAME: 'id<NSString>' +// CHECK-NEXT: ObjCTypeParamDecl +// CHECK-SAME: 'id':'id' + +void expr() { + Dictionary *d; +}
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits