SKIP: FAILED | |
#include <metal_stdlib> | |
using namespace metal; | |
thread int t = 0; | |
int3 m() { | |
t = 1; | |
return int3(t); | |
} | |
void f() { | |
uint3 v = uint3(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] | |
uint3 v = uint3(m()); | |
^ | |