1 /* { dg-do compile } */
2 /* { dg-options "-O0 -gbtf -dA -mco-re" } */
3
4 struct weird
5 {
6 struct
7 {
8 int b;
9 };
10
11 char x;
12
13 union
14 {
15 int a;
16 int c;
17 };
18 };
19
20
21 int test (struct weird *arg) {
22 int *x = __builtin_preserve_access_index (&arg->b);
23 int *y = __builtin_preserve_access_index (&arg->c);
24
25 return *x + *y;
26 }
27
28
29 /* { dg-final { scan-assembler-times "ascii \"0:0:0.0\"\[\t \]+\[^\n\]*btf_aux_string" 1 } } */
30 /* { dg-final { scan-assembler-times "ascii \"0:2:1.0\"\[\t \]+\[^\n\]*btf_aux_string" 1 } } */