blob: f80ff7ad7085309eba2b2b8f3dabccdbcaa675a9 [file] [log] [blame]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
thread bool t = false;
bool4 m() {
t = true;
return bool4(t);
}
void f() {
half4 v = half4(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]
half4 v = half4(m());
^