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