diff options
Diffstat (limited to 'test/Import/cxx-scalar-value-init/test.cpp')
-rw-r--r-- | test/Import/cxx-scalar-value-init/test.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Import/cxx-scalar-value-init/test.cpp b/test/Import/cxx-scalar-value-init/test.cpp new file mode 100644 index 0000000000000..596710911cc8f --- /dev/null +++ b/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(); +} |