Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.misc-tests / gcov-pr84758.c
blob2ae6900375fa45523db7bd5d35ef3d3e2cb1b936
1 /* { dg-options "-fprofile-arcs -ftest-coverage" } */
2 /* { dg-do run { target native } } */
4 int x, y;
6 static void
7 foo (int a, int b)
10 if (a == 1 || a == 2) /* count(1) */
12 x = 4; /* count(1) */
13 if (b == 3) /* count(1) */
14 x = 6; /* count(1) */
16 else
17 x = 15; /* count(#####) */
21 int
22 main (void)
24 foo (2, 3);
25 return 0;
28 /* { dg-final { run-gcov gcov-pr84758.c } } */