blob: 055382afeb731c1cc1db7bd471afd7dcab283c53 [file] [log] [blame]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
thread int t = 0;
int4 m() {
t = 1;
return int4(t);
}
void f() {
half4 v = half4(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]
half4 v = half4(m());
^