blob: 564ef4db3149b2099abd3ddaf90147178e939dd1 [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() {
float v = float(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]
float v = float(m());
^