aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-01-15 15:22:57 -0800
committerAndrew Kelley <andrew@ziglang.org>2025-01-15 15:22:57 -0800
commita4b7e9b97daf226801da6142760cff2f2ff955d5 (patch)
treebdecfa421379d01656256c19836d6d0fdab5f744 /src
parentae1641412124a4b09c8274b18792c162bc3cf65b (diff)
downloadzig-a4b7e9b97daf226801da6142760cff2f2ff955d5.tar.gz
zig-a4b7e9b97daf226801da6142760cff2f2ff955d5.zip
fix compiler unit tests
Diffstat (limited to 'src')
-rw-r--r--src/arch/wasm/CodeGen.zig2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/arch/wasm/CodeGen.zig b/src/arch/wasm/CodeGen.zig
index 90c5521695..eeaf9988cb 100644
--- a/src/arch/wasm/CodeGen.zig
+++ b/src/arch/wasm/CodeGen.zig
@@ -675,12 +675,10 @@ fn buildOpcode(args: OpcodeBuildArguments) std.wasm.Opcode {
test "Wasm - buildOpcode" {
// Make sure buildOpcode is referenced, and test some examples
const i32_const = buildOpcode(.{ .op = .@"const", .valtype1 = .i32 });
- const end = buildOpcode(.{ .op = .end });
const i64_extend32_s = buildOpcode(.{ .op = .extend, .valtype1 = .i64, .width = 32, .signedness = .signed });
const f64_reinterpret_i64 = buildOpcode(.{ .op = .reinterpret, .valtype1 = .f64, .valtype2 = .i64 });
try testing.expectEqual(@as(std.wasm.Opcode, .i32_const), i32_const);
- try testing.expectEqual(@as(std.wasm.Opcode, .end), end);
try testing.expectEqual(@as(std.wasm.Opcode, .i64_extend32_s), i64_extend32_s);
try testing.expectEqual(@as(std.wasm.Opcode, .f64_reinterpret_i64), f64_reinterpret_i64);
}