master
1fn entry(a: *addrspace(.gs) i32) *addrspace(.fs) i32 {
2 return a;
3}
4export fn entry2() void {
5 _ = &entry;
6}
7
8// error
9// output_mode=Obj
10// target=x86_64-linux,x86_64-macos
11//
12// :2:12: error: expected type '*addrspace(.fs) i32', found '*addrspace(.gs) i32'
13// :2:12: note: address space 'gs' cannot cast into address space 'fs'
14// :1:34: note: function return type declared here