aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.misc-tests/gcov-pr85217.c
blob: 86a3c4b5a129d88f8606df53254520acdd1e30d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-options "-fprofile-arcs -ftest-coverage" } */
/* { dg-do run { target native } } */

int a=0;

int main() {
  for (;; a++) {
    int c[1];
    if (a) {
      break;
      a;
      continue; /* count(1) */
    }
    continue; /* count(1) */
  }

  return 0;
}

/* { dg-final { run-gcov gcov-pr85217.c } } */