diff --git a/clang/test/Import/objc-param-decl/Inputs/S.m b/clang/test/Import/objc-param-decl/Inputs/S.m new file mode 100644 index 000000000000..6364cfa43381 --- /dev/null +++ b/clang/test/Import/objc-param-decl/Inputs/S.m @@ -0,0 +1,5 @@ +@protocol NSString +@end + +@interface Dictionary , NSString> +@end diff --git a/clang/test/Import/objc-param-decl/test.m b/clang/test/Import/objc-param-decl/test.m new file mode 100644 index 000000000000..ce05b01b0f83 --- /dev/null +++ b/clang/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' +// CHECK-NEXT: ObjCTypeParamDecl +// CHECK-SAME: 'id':'id' + +void expr() { + Dictionary *d; +}