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