blob: 3e4edfce2a30a25099a55ae619ef911e680e9b85 [file] [log] [blame]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
thread half t = 0.0h;
half3x3 m() {
t = (t + 1.0h);
return half3x3(half3(1.0h, 2.0h, 3.0h), half3(4.0h, 5.0h, 6.0h), half3(7.0h, 8.0h, 9.0h));
}
void f() {
float3x3 v = float3x3(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]
float3x3 v = float3x3(m());
^