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