zig/test/cases/llvm/pointer_with_different_address_spaces.zig
Andrew Kelley 953e2778d4 clean up a compile error test case
These should be build-obj, not build-exe, where possible.
2022-05-24 01:20:18 -07:00

14 lines
278 B
Zig

fn entry(a: *addrspace(.gs) i32) *addrspace(.fs) i32 {
return a;
}
export fn entry2() void {
_ = entry;
}
// error
// output_mode=Obj
// backend=stage2,llvm
// target=x86_64-linux,x86_64-macos
//
// :2:12: error: expected *addrspace(.fs) i32, found *addrspace(.gs) i32