blob: 43dba1732065b1b0ed1f54023fa7c703395118c4 [file] [log] [blame]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
thread bool t = false;
bool2 m() {
t = true;
return bool2(t);
}
void f() {
uint2 v = uint2(m());
}
program_source:4:13: error: program scope variable must reside in constant address space
thread bool t = false;
^
program_source:10:9: warning: unused variable 'v' [-Wunused-variable]
uint2 v = uint2(m());
^