blob: 628808f4178a0fa124982cf188acc845e60b5cb1 [file] [log] [blame]
Antonio Maiorano08d92792024-01-11 20:51:50 +00001struct S {
2 int x;
3};
4
5void deref() {
6 S a = (S)0;
7 int b = a.x;
8 a.x = 42;
9}
10
11void no_deref() {
12 S a = (S)0;
13 int b = a.x;
14 a.x = 42;
15}
16
17[numthreads(1, 1, 1)]
18void main() {
19 deref();
20 no_deref();
21 return;
22}