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