SKIP: FAILED | |
#include <metal_stdlib> | |
using namespace metal; | |
thread half t = 0.0h; | |
half2 m() { | |
t = 1.0h; | |
return half2(t); | |
} | |
void f() { | |
float2 v = float2(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] | |
float2 v = float2(m()); | |
^ | |