r339505 - [ASTImporter] Added test case for CXXConversionDecl importing
Raphael Isemann via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 11 16:43:02 PDT 2018
Author: teemperor
Date: Sat Aug 11 16:43:02 2018
New Revision: 339505
URL: http://llvm.org/viewvc/llvm-project?rev=339505&view=rev
Log:
[ASTImporter] Added test case for CXXConversionDecl importing
Reviewers: a.sidorin, a_sidorin
Reviewed By: a_sidorin
Subscribers: a_sidorin, martong, cfe-commits
Differential Revision: https://reviews.llvm.org/D50552
Added:
cfe/trunk/test/Import/conversion-decl/
cfe/trunk/test/Import/conversion-decl/Inputs/
cfe/trunk/test/Import/conversion-decl/Inputs/F.cpp
cfe/trunk/test/Import/conversion-decl/test.cpp
Added: cfe/trunk/test/Import/conversion-decl/Inputs/F.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Import/conversion-decl/Inputs/F.cpp?rev=339505&view=auto
==============================================================================
--- cfe/trunk/test/Import/conversion-decl/Inputs/F.cpp (added)
+++ cfe/trunk/test/Import/conversion-decl/Inputs/F.cpp Sat Aug 11 16:43:02 2018
@@ -0,0 +1,10 @@
+class Y {
+ int M;
+};
+
+class X {
+ int N, M;
+
+public:
+ operator Y();
+};
Added: cfe/trunk/test/Import/conversion-decl/test.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Import/conversion-decl/test.cpp?rev=339505&view=auto
==============================================================================
--- cfe/trunk/test/Import/conversion-decl/test.cpp (added)
+++ cfe/trunk/test/Import/conversion-decl/test.cpp Sat Aug 11 16:43:02 2018
@@ -0,0 +1,5 @@
+// RUN: clang-import-test -import %S/Inputs/F.cpp -expression %s
+void expr() {
+ X X1;
+ Y Y1 = X1;
+}
More information about the cfe-commits
mailing list