Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
address_spaces_pointer_access_chaining_array_pointer.zig
pretty
plain
permalink
blame
history
•
12 lines
•
214 B
1
fn entry(a: *addrspace(.gs) [1]i32) *addrspace(.gs) i32 {
2
return &a[0];
3
}
4
pub fn main() void {
5
_ = &entry;
6
}
7
8
// compile
9
// output_mode=Exe
10
// backend=selfhosted,llvm
11
// target=x86_64-linux,x86_64-macos
12
//