SKIP: FAILED | |
#include <metal_stdlib> | |
using namespace metal; | |
thread half t = 0.0h; | |
half3x2 m() { | |
t = (t + 1.0h); | |
return half3x2(half2(1.0h, 2.0h), half2(3.0h, 4.0h), half2(5.0h, 6.0h)); | |
} | |
void f() { | |
float3x2 v = float3x2(m()); | |
} | |
program_source:4:13: error: program scope variable must reside in constant address space | |
thread half t = 0.0h; | |
^ | |
program_source:10:12: warning: unused variable 'v' [-Wunused-variable] | |
float3x2 v = float3x2(m()); | |
^ | |