blob: 6db60e13a7cdea277bd27c93b3cea78391d98288 [file] [log] [blame]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
thread float t = 0.0f;
float2x2 m() {
t = (t + 1.0f);
return float2x2(float2(1.0f, 2.0f), float2(3.0f, 4.0f));
}
void f() {
half2x2 v = half2x2(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]
half2x2 v = half2x2(m());
^