blob: 21dac4d9d1dbb33773181ca38b8a6d725e204147 [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() {
float4 v = float4(m());
}
program_source:4:13: error: program scope variable must reside in constant address space
thread half t = 0.0h;
^
program_source:10:10: warning: unused variable 'v' [-Wunused-variable]
float4 v = float4(m());
^