summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-prof/wcoverage-mismatch.c
blob: e4231057f324df18e6c59633e1869dcd49fca42d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-options "-O2 -Wno-coverage-mismatch" } */

int __attribute__((noinline)) bar (void)
{
}

int foo (int i)
{
#ifdef _PROFILE_USE
  if (i)
    bar ();
#endif
  return 0;
}

int main(int argc, char **argv)
{
  foo (argc);
  return 0;
}