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