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