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