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