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