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