blob: 56121626741097084c4e4fce20af1ee772b48559 [file] [log] [blame]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
thread int t = 0;
int m() {
t = 1;
return int(t);
}
void f() {
bool v = bool(m());
}
program_source:4:12: error: program scope variable must reside in constant address space
thread int t = 0;
^
program_source:10:8: warning: unused variable 'v' [-Wunused-variable]
bool v = bool(m());
^