#zig build-obj {
--name test -fno-emit-bin
-target x86_64-native
-Mroot=test.zig
#}

#write test.zig {
export fn entry(a: ?*addrspace(.gs) i32) *i32 {
    return a.?;
}
#}
#update
#check errors {
test.zig:2:13: error: expected type '*i32', found '*addrspace(.gs) i32'
test.zig:2:13: note: address space 'gs' cannot cast into address space 'generic'
test.zig:1:42: note: function return type declared here
#}
