* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / gcov / gcov-10.C
blob4c91be94ee46ee40e53108fc1a1cec1bb605714c
1 /* Ensure PIC sequence used for comdat functions */
3 /* { dg-options "-fprofile-arcs -ftest-coverage -fpic" } */
4 /* { dg-do run { target native } } */
5 /* { dg-require-effective-target fpic } */
7 inline int __attribute__ ((noinline)) Foo ()
9   static int x[1];
11   return x[0]++;  /* count (1) */
14 int main ()
16   Foo ();  /* count (1) */
17   return 0;  /* count (1) */
20 /* { dg-final { run-gcov gcov-10.C } } */