| 1 | const A = struct { a: i32 }; |
| 2 | fn entry(a: *addrspace(.gs) A) *addrspace(.gs) i32 { |
| 3 | return &a.a; |
| 4 | } |
| 5 | pub fn main() void { |
| 6 | _ = &entry; |
| 7 | } |
| 8 | |
| 9 | // compile |
| 10 | // output_mode=Exe |
| 11 | // backend=selfhosted,llvm |
| 12 | // target=x86_64-linux,x86_64-macos |
| 13 | // |