blob: ecfa8c23d327ecea61d62e77bb181f2b2dd2ec80 (
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
|
/* { dg-options "--coverage -fpath-coverage" } */
/* { dg-do run { target native } } */
/* BEGIN paths
summary: 1/2
expect covered: 13(true) 14 17
*/
void
covered (int a)
/* END */
{
int v = 0;
if (a)
v++;
else
v--;
}
/* BEGIN paths
summary: 1/1
expect covered: 24 */
int main ()
{
covered (1);
}
/* { dg-final { run-gcov prime-paths { --prime-paths-lines=covered gcov-33.c } } } */
|