diff options
| author | Ali Chraghi <alichraghi@proton.me> | 2023-05-15 22:04:42 +0330 |
|---|---|---|
| committer | Ali Chraghi <alichraghi@proton.me> | 2023-05-15 22:04:42 +0330 |
| commit | 6fca3f8b72397d62dd7b2d2e07db843c88428ac3 (patch) | |
| tree | b7d5163be18eb039ddd9f008ab2256748af63cbe /test | |
| parent | f8de4db8731e20995d16ec29bc0fb553e7d6f5bf (diff) | |
| download | zig-6fca3f8b72397d62dd7b2d2e07db843c88428ac3.tar.gz zig-6fca3f8b72397d62dd7b2d2e07db843c88428ac3.zip | |
spirv: lower ptrtoint & ignore dbg_inline instructions
Diffstat (limited to 'test')
| -rw-r--r-- | test/behavior/cast.zig | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/test/behavior/cast.zig b/test/behavior/cast.zig index 79af2176d1..ff478e74bf 100644 --- a/test/behavior/cast.zig +++ b/test/behavior/cast.zig @@ -1285,14 +1285,10 @@ test "implicit cast *[0]T to E![]const u8" { var global_array: [4]u8 = undefined; test "cast from array reference to fn: comptime fn ptr" { - if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; - const f = @ptrCast(*align(1) const fn () callconv(.C) void, &global_array); try expect(@ptrToInt(f) == @ptrToInt(&global_array)); } test "cast from array reference to fn: runtime fn ptr" { - if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; - var f = @ptrCast(*align(1) const fn () callconv(.C) void, &global_array); try expect(@ptrToInt(f) == @ptrToInt(&global_array)); } |
