1 /* { dg-options "-fprofile-arcs -ftest-coverage" } */
2 /* { dg-do run { target native } } */
3
4 int x, y;
5
6 static void
7 foo (int a, int b)
8 {
9 {
10 if (a == 1 || a == 2) /* count(1) */
11 {
12 x = 4; /* count(1) */
13 if (b == 3) /* count(1) */
14 x = 6; /* count(1) */
15 }
16 else
17 x = 15; /* count(#####) */
18 }
19 }
20
21 int
22 main (void)
23 {
24 foo (2, 3);
25 return 0;
26 }
27
28 /* { dg-final { run-gcov gcov-pr84758.c } } */