zig/test/cases/spirv_mergable_pointers.zig
Alex Rønne Petersen 1d1ca84854
test: Set emit_bin=false for spirv_mergable_pointers.zig.
/home/alexrp/.cache/zig/b/18236e302af25e3fb99bc6a232ddc447/builtin.zig:6:5: error: TODO (SPIR-V): Implement unsigned composite int type of 64 bits
pub const zig_backend = std.builtin.CompilerBackend.stage2_spirv64;
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-11-24 22:11:17 +01:00

17 lines
326 B
Zig

export fn a() void {
var x: *addrspace(.global) i32 = undefined;
_ = &x;
var y: *addrspace(.global) i32 = undefined;
_ = &y;
var rt_cond = false;
_ = &rt_cond;
var z = if (rt_cond) x else y;
_ = &z;
}
// compile
// output_mode=Obj
// backend=stage2
// target=spirv64-vulkan
// emit_bin=false