blob: 86f0ba968239a8ceab47ad7b171dec81a99872a7 [file] [log] [blame]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
thread float t = 0.0f;
float3x2 m() {
t = (t + 1.0f);
return float3x2(float2(1.0f, 2.0f), float2(3.0f, 4.0f), float2(5.0f, 6.0f));
}
void f() {
half3x2 v = half3x2(m());
}
program_source:4:14: error: program scope variable must reside in constant address space
thread float t = 0.0f;
^
program_source:10:11: warning: unused variable 'v' [-Wunused-variable]
half3x2 v = half3x2(m());
^