1 /* Check that call return percentages are reported correctly by gcov,
2 along with line counts and branch percentages. This test case is
3 meant to be simple, as it was added at the same time that checking
4 for call return percentages was added. */
6 /* { dg-options "-fprofile-arcs -ftest-coverage" } */
7 /* { dg-do run { target native } } */
9 extern void exit (int);
17 if (i
< 0) /* count(5) */
20 exit (0); /* count(1) */
22 val
+= i
; /* count(4) */
31 foo (100); /* count(1) */
33 for (i
= 2; i
> -10; i
--)
35 foo (i
); /* count(4) */
39 /* { dg-final { run-gcov branches calls { -b gcov-6.c } } } */