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