Debian Codegraph @

gcc/testsuite/gcc.misc-tests/gcov-26.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 excluded and later included it should 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 { fst snd } { main } } { --exclude=1 --include=fn gcov-26.c } } } */