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