blob: 251b08ffcd4aa2b05db0cfe9b2c2e2dfd3c77d5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/* { dg-do compile } */
/* { dg-options "-O0 -dA -gbtf -mco-re -masm=normal" } */
struct T {
int a;
int b;
struct U {
int c;
struct V {
int d;
int e[4];
int f;
} v;
} u;
};
void func (struct T * foo)
{
/* Access string: "0:2:1:1:3" */
int *x = __builtin_preserve_access_index (&(foo->u.v.e[3]));
*x = 17;
}
/* { dg-final { scan-assembler-times "ascii \"0:2:1:1:3.0\"\[\t \]+\[^\n\]*btf_aux_string" 1 } } */
/* { dg-final { scan-assembler-times "bpfcr_type" 1 } } */
|