blob: 5fd4bbe6929e610836de858c4b8bef47c362e143 [file] [log] [blame]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
thread int t = 0;
int m() {
t = 1;
return int(t);
}
void f() {
half v = half(m());
}
program_source:4:12: error: program scope variable must reside in constant address space
thread int t = 0;
^
program_source:10:8: warning: unused variable 'v' [-Wunused-variable]
half v = half(m());
^