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