* gcc-interface/trans.c (node_has_volatile_full_access) <N_Identifier>:
[official-gcc.git] / gcc / testsuite / gcc.misc-tests / gcov-14.c
blob2bebf7e4a939347920eeb5eaac3f60c53cf4fc6c
1 /* Test gcov extern inline. */
3 /* { dg-do run { target native } } */
4 /* { dg-options "-O2 -fprofile-arcs -ftest-coverage -fgnu89-inline" } */
5 /* The following line arranges that Darwin has behavior like elf weak import. */
6 /* { dg-additional-options "-flat_namespace -undefined suppress" { target *-*-darwin* } } */
7 /* { dg-require-weak "" } */
8 /* { dg-skip-if "undefined weak not supported" { { hppa*-*-hpux* } && { ! lp64 } } } */
9 /* { dg-skip-if "undefined weak not supported" { powerpc-ibm-aix* } } */
11 extern int __attribute__ ((weak)) Foo ();
13 extern __inline int Foo ()
15 return 0; /* count(-) */
18 int (* __attribute__ ((noinline)) Bar ()) ()
20 return Foo; /* count(1) */
23 int main ()
25 return Bar () != 0; /* count(1) */
28 /* { dg-final { run-gcov { -a gcov-14.c } } } */