blob: 1fa363ea0dc44998962e38c763f2583d073424bf [file] [log] [blame]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
struct S {
half3 v;
};
thread S P = {};
void f() {
P.v = half3(1.0h, 2.0h, 3.0h);
P.v[0u] = 1.0h;
P.v[1u] = 2.0h;
P.v[2u] = 3.0h;
}
program_source:7:10: error: program scope variable must reside in constant address space
thread S P = {};
^