Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
pointer_keeps_address_space.zig
pretty
plain
permalink
blame
history
•
12 lines
•
207 B
1
fn entry(a: *addrspace(.gs) i32) *addrspace(.gs) i32 {
2
return a;
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
//