| author | |
| committer | |
| log | 2928b01afc5f0d84669ac6a70eedab4117d805f3 |
| tree | ebe7eb101fcf7e674388abde5cd7ed80e9ac4885 |
| parent | 0a495aa56344d90d41cc1f77b3ede0be52c7cf99 |
2 files changed, 3 insertions(+), 3 deletions(-)
src/translate_c.cpp+1-2| ... | ... | @@ -1700,8 +1700,7 @@ static AstNode *trans_implicit_cast_expr(Context *c, TransScope *scope, const Im |
| 1700 | 1700 | emit_warning(c, stmt->getBeginLoc(), "TODO handle C translation cast CK_LValueBitCast"); |
| 1701 | 1701 | return nullptr; |
| 1702 | 1702 | case CK_NoOp: |
| 1703 | emit_warning(c, stmt->getBeginLoc(), "TODO handle C translation cast CK_NoOp"); | |
| 1704 | return nullptr; | |
| 1703 | return trans_expr(c, ResultUsedYes, scope, stmt->getSubExpr(), TransRValue); | |
| 1705 | 1704 | case CK_BaseToDerived: |
| 1706 | 1705 | emit_warning(c, stmt->getBeginLoc(), "TODO handle C translation cast CK_BaseToDerived"); |
| 1707 | 1706 | return nullptr; |
test/cli.zig+2-1| ... | ... | @@ -127,5 +127,6 @@ fn testGodboltApi(zig_exe: []const u8, dir_path: []const u8) error!void { |
| 127 | 127 | |
| 128 | 128 | const out_asm = try std.io.readFileAlloc(a, example_s_path); |
| 129 | 129 | assertOrPanic(std.mem.indexOf(u8, out_asm, "square:") != null); |
| 130 | assertOrPanic(std.mem.indexOf(u8, out_asm, "imul\tedi, edi") != null); | |
| 130 | assertOrPanic(std.mem.indexOf(u8, out_asm, "mov\teax, edi") != null); | |
| 131 | assertOrPanic(std.mem.indexOf(u8, out_asm, "imul\teax, edi") != null); | |
| 131 | 132 | } |