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