[PATCH] D50552: [ASTImporter] Added test case for CXXConversionDecl importing

Raphael Isemann via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 11 16:43:41 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL339505: [ASTImporter] Added test case for CXXConversionDecl importing (authored by teemperor, committed by ).
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D50552?vs=160060&id=160247#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D50552

Files:
  cfe/trunk/test/Import/conversion-decl/Inputs/F.cpp
  cfe/trunk/test/Import/conversion-decl/test.cpp


Index: cfe/trunk/test/Import/conversion-decl/Inputs/F.cpp
===================================================================
--- cfe/trunk/test/Import/conversion-decl/Inputs/F.cpp
+++ cfe/trunk/test/Import/conversion-decl/Inputs/F.cpp
@@ -0,0 +1,10 @@
+class Y {
+  int M;
+};
+
+class X {
+  int N, M;
+
+public:
+  operator Y();
+};
Index: cfe/trunk/test/Import/conversion-decl/test.cpp
===================================================================
--- cfe/trunk/test/Import/conversion-decl/test.cpp
+++ cfe/trunk/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;
+}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50552.160247.patch
Type: text/x-patch
Size: 683 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180811/3b9255b8/attachment.bin>


More information about the cfe-commits mailing list