1threadlocal var counter: u32 addrspace(.generic) = 0;
2
3export fn main() callconv(.kernel) void {
4 counter += 1;
5}
6
7// error
8// backend=selfhosted
9// target=spirv32-vulkan
10//
11// :1:41: error: threadlocal variables with address space 'generic' are not supported on vulkan