r340465 - [ASTImporter] Add test for ObjCTypeParamDecl
Raphael Isemann via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 22 15:48:40 PDT 2018
Author: teemperor
Date: Wed Aug 22 15:48:40 2018
New Revision: 340465
URL: http://llvm.org/viewvc/llvm-project?rev=340465&view=rev
Log:
[ASTImporter] Add test for ObjCTypeParamDecl
Reviewers: a.sidorin, a_sidorin
Reviewed By: a_sidorin
Subscribers: martong, cfe-commits
Differential Revision: https://reviews.llvm.org/D51059
Added:
cfe/trunk/test/Import/objc-param-decl/
cfe/trunk/test/Import/objc-param-decl/Inputs/
cfe/trunk/test/Import/objc-param-decl/Inputs/S.m
cfe/trunk/test/Import/objc-param-decl/test.m
Added: cfe/trunk/test/Import/objc-param-decl/Inputs/S.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Import/objc-param-decl/Inputs/S.m?rev=340465&view=auto
==============================================================================
--- cfe/trunk/test/Import/objc-param-decl/Inputs/S.m (added)
+++ cfe/trunk/test/Import/objc-param-decl/Inputs/S.m Wed Aug 22 15:48:40 2018
@@ -0,0 +1,5 @@
+ at protocol NSString
+ at end
+
+ at interface Dictionary <FirstParam : id <NSString>, NSString>
+ at end
Added: cfe/trunk/test/Import/objc-param-decl/test.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Import/objc-param-decl/test.m?rev=340465&view=auto
==============================================================================
--- cfe/trunk/test/Import/objc-param-decl/test.m (added)
+++ cfe/trunk/test/Import/objc-param-decl/test.m Wed Aug 22 15:48:40 2018
@@ -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;
+}
More information about the cfe-commits
mailing list