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