Debian Codegraph @

gcc/testsuite/gcc.target/bpf/core-options-1.c

raw
1 /* -gbtf for the BPF target should enable CO-RE support automatically. */
2 /* { dg-do compile } */
3 /* { dg-options "-gbtf" } */
4
5 struct A {
6 int x;
7 int y;
8 char c;
9 };
10
11 int
12 foo (struct A *a) {
13 int y = __builtin_preserve_access_index (a->y);
14 return y;
15 }