Debian Codegraph @

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

raw
1 /* { dg-do compile } */
2 /* { dg-options "-gbtf -gtoggle" } */
3
4 struct A {
5 int x;
6 int y;
7 char c;
8 };
9
10 int
11 foo (struct A *a) {
12 int y = __builtin_preserve_access_index (a->y); /* { dg-error "BPF CO-RE is required" } */
13 return y;
14 }