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