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

int main (void)
{
  const int t = 2; /* count(1) */
  struct s1 {	/* count(-) */
    int x;
    int g[t];
  };

  struct s2 {
    int x;
    int g[2];
  };

  __builtin_printf("Sucess!\n");
  return 0;
}

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