1 /* Test gcov block mode. As the example does jump to a statement
2 that is on a line with different ones, we must calculate such jump
5 /* { dg-options "-fprofile-arcs -ftest-coverage" } */
6 /* { dg-do run { target native } } */
10 void foo() /* count(1) */
15 void bar() /* count(1) */
20 int main() /* count(1) */
22 foo (); goto baz
; lab
: bar (); /* count(2) */
25 if (a
== 1) /* count(2) */
26 goto lab
; /* count(1) */
29 /* { dg-final { run-gcov { gcov-18.c } } } */