zig/test/cases/address_spaces_pointer_access_chaining_array_pointer.zig
Alex Rønne Petersen 4dba253cd2
test: pull tests in test/cases/llvm/ up to test/cases/
There is nothing inherently LLVM-specific about any of these.
2025-09-16 23:39:29 +02:00

12 lines
214 B
Zig

fn entry(a: *addrspace(.gs) [1]i32) *addrspace(.gs) i32 {
return &a[0];
}
pub fn main() void {
_ = &entry;
}
// compile
// output_mode=Exe
// backend=selfhosted,llvm
// target=x86_64-linux,x86_64-macos
//