SKIP: FAILED | |
#include <metal_stdlib> | |
using namespace metal; | |
thread half t = 0.0h; | |
half4x4 m() { | |
t = (t + 1.0h); | |
return half4x4(half4(1.0h, 2.0h, 3.0h, 4.0h), half4(5.0h, 6.0h, 7.0h, 8.0h), half4(9.0h, 10.0h, 11.0h, 12.0h), half4(13.0h, 14.0h, 15.0h, 16.0h)); | |
} | |
void f() { | |
float4x4 v = float4x4(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] | |
float4x4 v = float4x4(m()); | |
^ | |