| author | |
| committer | |
| log | 85256521bad282ccbd22b6f5724753476ab85038 |
| tree | e030cecc8797c121b3ad895bd6ecb8b8bd454bd9 |
| parent | a581f4f0e29c14cc7faa54d9a2d4f7458a734fe4 |
| signature |
2 files changed, 4 insertions(+), 1 deletions(-)
src/translate_c.cpp+2-1| ... | ... | @@ -1292,7 +1292,8 @@ static AstNode *trans_integer_literal(Context *c, ResultUsed result_used, const |
| 1292 | 1292 | emit_warning(c, stmt->getBeginLoc(), "invalid integer literal"); |
| 1293 | 1293 | return nullptr; |
| 1294 | 1294 | } |
| 1295 | return trans_create_node_apint(c, result.Val.getInt()); | |
| 1295 | AstNode *node = trans_create_node_apint(c, result.Val.getInt()); | |
| 1296 | return maybe_suppress_result(c, result_used, node); | |
| 1296 | 1297 | } |
| 1297 | 1298 | |
| 1298 | 1299 | static AstNode *trans_constant_expr(Context *c, ResultUsed result_used, const clang::ConstantExpr *expr) { |
test/tests.zig+2| ... | ... | @@ -1015,6 +1015,7 @@ pub const TranslateCContext = struct { |
| 1015 | 1015 | \\============================================ |
| 1016 | 1016 | \\ |
| 1017 | 1017 | , stderr); |
| 1018 | printInvocation(zig_args.toSliceConst()); | |
| 1018 | 1019 | return error.TestFailed; |
| 1019 | 1020 | } |
| 1020 | 1021 | |
| ... | ... | @@ -1028,6 +1029,7 @@ pub const TranslateCContext = struct { |
| 1028 | 1029 | \\{} |
| 1029 | 1030 | \\ |
| 1030 | 1031 | , expected_line, stdout); |
| 1032 | printInvocation(zig_args.toSliceConst()); | |
| 1031 | 1033 | return error.TestFailed; |
| 1032 | 1034 | } |
| 1033 | 1035 | } |