testsuite/linux/weak-symbols.c
raw| 1 | /* { dg-options "-DCE_EXTRACT_FUNCTIONS=f -DCE_SYMVERS_PATH=../testsuite/linux/Modules.symvers -DCE_RENAME_SYMBOLS -nostdinc -I../testsuite/linux -D__USE_IBT__ -D__KERNEL__" } */ |
| 2 | |
| 3 | int bpf_prog_put(void); |
| 4 | |
| 5 | int bpf_prog_put(void) |
| 6 | { |
| 7 | return 42; |
| 8 | } |
| 9 | |
| 10 | int f(void) |
| 11 | { |
| 12 | return bpf_prog_put(); |
| 13 | } |
| 14 | |
| 15 | /* { dg-final { scan-tree-dump "int bpf_prog_put\(void\);" } } */ |
| 16 | /* { dg-final { scan-tree-dump-not "return 42;" } } */ |