gcc/testsuite/gcc.misc-tests/gcov-25.c
raw| 1 | /* { dg-options "-fprofile-arcs -ftest-coverage" } */ |
| 2 | /* { dg-do run { target native } } */ |
| 3 | |
| 4 | /* Filters are considered in order with latest-wins, so if a function is |
| 5 | included and later excluded it should not show up. */ |
| 6 | |
| 7 | int |
| 8 | fn1 (int x) |
| 9 | { |
| 10 | /* fst */ |
| 11 | return x; |
| 12 | } |
| 13 | |
| 14 | int |
| 15 | fn2 (int x) |
| 16 | { |
| 17 | /* snd */ |
| 18 | return x * 2; |
| 19 | } |
| 20 | |
| 21 | int |
| 22 | main () |
| 23 | {} |
| 24 | |
| 25 | /* { dg-final { run-gcov { filters { snd } { fst main } } { --include=fn --exclude=1 gcov-25.c } } } */ |