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