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(); +}
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(); +}
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits