[PATCH] D50552: [ASTImporter] Added test case for CXXConversionDecl importing
Raphael Isemann via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 9 23:22:04 PDT 2018
teemperor created this revision.
Herald added a subscriber: martong.
Herald added a reviewer: a.sidorin.
Repository:
rC Clang
https://reviews.llvm.org/D50552
Files:
test/Import/conversion-decl/Inputs/F.cpp
test/Import/conversion-decl/test.cpp
Index: test/Import/conversion-decl/test.cpp
===================================================================
--- /dev/null
+++ test/Import/conversion-decl/test.cpp
@@ -0,0 +1,5 @@
+// RUN: clang-import-test -import %S/Inputs/F.cpp -expression %s
+void expr() {
+ X X1;
+ Y Y1 = X1;
+}
Index: test/Import/conversion-decl/Inputs/F.cpp
===================================================================
--- /dev/null
+++ test/Import/conversion-decl/Inputs/F.cpp
@@ -0,0 +1,10 @@
+class Y {
+ int M;
+};
+
+class X {
+ int N, M;
+
+public:
+ operator Y();
+};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50552.160060.patch
Type: text/x-patch
Size: 565 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180810/d98b8081/attachment.bin>
More information about the cfe-commits
mailing list