SKIP: FAILED | |
#include <metal_stdlib> | |
using namespace metal; | |
thread float t = 0.0f; | |
float2 m() { | |
t = 1.0f; | |
return float2(t); | |
} | |
void f() { | |
bool2 v = bool2(m()); | |
} | |
program_source:4:14: error: program scope variable must reside in constant address space | |
thread float t = 0.0f; | |
^ | |
program_source:10:9: warning: unused variable 'v' [-Wunused-variable] | |
bool2 v = bool2(m()); | |
^ | |