gcc/testsuite/gcc.target/bpf/core-lto-1.c
raw| 1 | /* Test -mco-re with -flto. |
| 2 | |
| 3 | -mco-re is used to generate information for BPF CO-RE usecase. To support |
| 4 | the generataion of the .BTF and .BTF.ext sections in GCC, -flto is disabled |
| 5 | with -mco-re. */ |
| 6 | |
| 7 | /* { dg-do compile } */ |
| 8 | /* { dg-message "sorry, unimplemented: BPF CO-RE does not support LTO" "" { target bpf-*-* } 0 } */ |
| 9 | /* { dg-options "-gbtf -mco-re -flto" } */ |