Skip to content

Commit

Permalink
stage2: fix comptime bitCast test
Browse files Browse the repository at this point in the history
  • Loading branch information
GethDW committed Oct 15, 2022
1 parent 507aa59 commit 5c1b3c9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/behavior/bitcast.zig
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,12 @@ test "@bitCast packed struct of floats" {
}

test "comptime @bitCast packed struct to int" {
if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest;

const S = packed struct {
@"void": void = {},
uint: u8 = 13,
Expand Down

0 comments on commit 5c1b3c9

Please sign in to comment.