[PATCH] D51059: [ASTImporter] Add test for ObjCTypeParamDecl
Raphael Isemann via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 22 15:49:39 PDT 2018
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 @@
+ at protocol NSString
+ at end
+
+ at interface Dictionary <FirstParam : id <NSString>, NSString>
+ at 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;
+}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51059.162083.patch
Type: text/x-patch
Size: 810 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180822/54306e50/attachment.bin>
More information about the cfe-commits
mailing list