blob: c7299e0d28a94abd0c2387ce0f2949c4d32392e1 [file] [log] [blame]
void deref_const() {
int3 a = (int(0)).xxx;
int3 p = a;
int b = p.x;
p[int(0)] = int(42);
}
void no_deref_const() {
int3 a = (int(0)).xxx;
int3 p = a;
int b = p.x;
p[int(0)] = int(42);
}
void deref_let() {
int3 a = (int(0)).xxx;
int3 p = a;
int i = int(0);
int b = p[i];
p[int(0)] = int(42);
}
void no_deref_let() {
int3 a = (int(0)).xxx;
int3 p = a;
int i = int(0);
int b = p[i];
p[int(0)] = int(42);
}
void deref_var() {
int3 a = (int(0)).xxx;
int3 p = a;
int i = int(0);
int b = p[i];
p[int(0)] = int(42);
}
void no_deref_var() {
int3 a = (int(0)).xxx;
int3 p = a;
int i = int(0);
int b = p[i];
p[int(0)] = int(42);
}
[numthreads(1, 1, 1)]
void main() {
deref_const();
no_deref_const();
deref_let();
no_deref_let();
deref_var();
no_deref_var();
}