[PATCH] D50735: [ASTImporter] Add test for CXXScalarValueInit
Raphael Isemann via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 14 13:49:54 PDT 2018
teemperor created this revision.
Herald added a subscriber: martong.
Herald added a reviewer: a.sidorin.
Repository:
rC Clang
https://reviews.llvm.org/D50735
Files:
test/Import/cxx-scalar-value-init/Inputs/S.cpp
test/Import/cxx-scalar-value-init/test.cpp
Index: test/Import/cxx-scalar-value-init/test.cpp
===================================================================
--- /dev/null
+++ 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();
+}
Index: test/Import/cxx-scalar-value-init/Inputs/S.cpp
===================================================================
--- /dev/null
+++ test/Import/cxx-scalar-value-init/Inputs/S.cpp
@@ -0,0 +1,2 @@
+int si() { return int(); }
+float sf() { return float(); }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50735.160685.patch
Type: text/x-patch
Size: 722 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180814/a2b0af19/attachment.bin>
More information about the cfe-commits
mailing list