diff options
author | Raphael Isemann <teemperor@gmail.com> | 2018-08-16 01:36:37 +0000 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2018-08-16 01:36:37 +0000 |
commit | 1038fa61ecf964bce1c17139cd24943a67b8587a (patch) | |
tree | 26b23c6cfebe290534cf00f617f46c012e8a40a5 /clang/test | |
parent | 85504a9ca690cd6eaf364b3daa653b7a1e0a3c38 (diff) | |
download | bcm5719-llvm-1038fa61ecf964bce1c17139cd24943a67b8587a.tar.gz bcm5719-llvm-1038fa61ecf964bce1c17139cd24943a67b8587a.zip |
[ASTImporter] Add test for CXXScalarValueInit
Reviewers: a.sidorin, a_sidorin
Reviewed By: a_sidorin
Subscribers: martong, cfe-commits
Differential Revision: https://reviews.llvm.org/D50735
llvm-svn: 339838
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/Import/cxx-scalar-value-init/Inputs/S.cpp | 2 | ||||
-rw-r--r-- | clang/test/Import/cxx-scalar-value-init/test.cpp | 11 |
2 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/Import/cxx-scalar-value-init/Inputs/S.cpp b/clang/test/Import/cxx-scalar-value-init/Inputs/S.cpp new file mode 100644 index 00000000000..153d960699b --- /dev/null +++ b/clang/test/Import/cxx-scalar-value-init/Inputs/S.cpp @@ -0,0 +1,2 @@ +int si() { return int(); } +float sf() { return float(); } diff --git a/clang/test/Import/cxx-scalar-value-init/test.cpp b/clang/test/Import/cxx-scalar-value-init/test.cpp new file mode 100644 index 00000000000..596710911cc --- /dev/null +++ b/clang/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(); +} |