| 1 |
/* Using -g does not incorrectly force CO-RE enabled. */ |
| 2 |
/* { dg-do compile } */ |
| 3 |
/* { dg-options "-g -dA -mno-co-re" }*/ |
| 4 |
|
| 5 |
struct A { |
| 6 |
int x; |
| 7 |
int y; |
| 8 |
}; |
| 9 |
|
| 10 |
int |
| 11 |
foo (struct A *a) |
| 12 |
{ |
| 13 |
return __builtin_preserve_access_index (a->x); /* { dg-error "BPF CO-RE is required" } */ |
| 14 |
} |