repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.misc-tests
/
gcov-pr84758.c
blob
2ae6900375fa45523db7bd5d35ef3d3e2cb1b936
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 } } */