[PATCH] D50735: [ASTImporter] Add test for CXXScalarValueInit

Raphael Isemann via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 15 18:37:17 PDT 2018


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

Changed prior to commit:
  https://reviews.llvm.org/D50735?vs=160685&id=160966#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D50735

Files:
  cfe/trunk/test/Import/cxx-scalar-value-init/Inputs/S.cpp
  cfe/trunk/test/Import/cxx-scalar-value-init/test.cpp


Index: cfe/trunk/test/Import/cxx-scalar-value-init/Inputs/S.cpp
===================================================================
--- cfe/trunk/test/Import/cxx-scalar-value-init/Inputs/S.cpp
+++ cfe/trunk/test/Import/cxx-scalar-value-init/Inputs/S.cpp
@@ -0,0 +1,2 @@
+int si() { return int(); }
+float sf() { return float(); }
Index: cfe/trunk/test/Import/cxx-scalar-value-init/test.cpp
===================================================================
--- cfe/trunk/test/Import/cxx-scalar-value-init/test.cpp
+++ cfe/trunk/test/Import/cxx-scalar-value-init/test.cpp
@@ -0,0 +1,11 @@
+// RUN: clang-import-test -dump-ast -import %S/Inputs/S.cpp -expression %s | FileCheck %s
+// CHECK: CXXScalarValueInitExpr
+// CHECK-SAME: 'int'
+
+// CHECK: CXXScalarValueInitExpr
+// CHECK-SAME: 'float'
+
+void expr() {
+  int i = si();
+  float f = sf();
+}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50735.160966.patch
Type: text/x-patch
Size: 852 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180816/d231af5e/attachment.bin>


More information about the llvm-commits mailing list