aboutsummaryrefslogtreecommitdiff
path: root/test/cases/llvm/address_spaces_pointer_access_chaining_array_pointer.zig
blob: f23498e955f32650149e9d45aa2024a8e11540e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
fn entry(a: *addrspace(.gs) [1]i32) *addrspace(.gs) i32 {
    return &a[0];
}
pub fn main() void {
    _ = entry;
}

// compile
// output_mode=Exe
// backend=stage2,llvm
// target=x86_64-linux,x86_64-macos
//