Antonio Maiorano | 08d9279 | 2024-01-11 20:51:50 +0000 | [diff] [blame] | 1 | struct S { |
2 | int x; | ||||
3 | }; | ||||
4 | |||||
5 | void deref() { | ||||
6 | S a = (S)0; | ||||
7 | int b = a.x; | ||||
8 | a.x = 42; | ||||
9 | } | ||||
10 | |||||
11 | void no_deref() { | ||||
12 | S a = (S)0; | ||||
13 | int b = a.x; | ||||
14 | a.x = 42; | ||||
15 | } | ||||
16 | |||||
17 | [numthreads(1, 1, 1)] | ||||
18 | void main() { | ||||
19 | deref(); | ||||
20 | no_deref(); | ||||
21 | return; | ||||
22 | } |