blob: e32b520161ebab5493ea5ea2aacb051c99c9c0e9 [file] [log] [blame]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
thread half2x4 u = half2x4(half4(1.0h, 2.0h, 3.0h, 4.0h), half4(5.0h, 6.0h, 7.0h, 8.0h));
void f() {
float2x4 v = float2x4(u);
}
program_source:4:16: error: program scope variable must reside in constant address space
thread half2x4 u = half2x4(half4(1.0h, 2.0h, 3.0h, 4.0h), half4(5.0h, 6.0h, 7.0h, 8.0h));
^
program_source:6:12: warning: unused variable 'v' [-Wunused-variable]
float2x4 v = float2x4(u);
^