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