blob: d9fbb8cf7f255d364980293501ccce29384a87a8 [file] [log] [blame]
void deref_const() {
int a[10] = (int[10])0;
int p[10] = a;
int b = p[int(0)];
p[int(0)] = int(42);
}
void no_deref_const() {
int a[10] = (int[10])0;
int p[10] = a;
int b = p[int(0)];
p[int(0)] = int(42);
}
void deref_let() {
int a[10] = (int[10])0;
int p[10] = a;
int i = int(0);
int b = p[i];
p[int(0)] = int(42);
}
void no_deref_let() {
int a[10] = (int[10])0;
int p[10] = a;
int i = int(0);
int b = p[i];
p[int(0)] = int(42);
}
void deref_var() {
int a[10] = (int[10])0;
int p[10] = a;
int i = int(0);
int b = p[i];
p[int(0)] = int(42);
}
void no_deref_var() {
int a[10] = (int[10])0;
int p[10] = 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();
}