URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.misc-tests/] [gcov-14.c] - Rev 849
Go to most recent revision | Compare with Previous | Blame | View Log
/* Test gcov extern inline. */ /* { dg-options "-O2 -fprofile-arcs -ftest-coverage" } */ /* The following line arranges that Darwin has behavior like elf weak import. */ /* { dg-additional-options "-flat_namespace -undefined suppress" { target *-*-darwin* } } */ /* { dg-require-weak "" } */ /* { dg-do run { target native } } */ /* { dg-skip-if "undefined weak not supported" { alpha*-dec-osf* } } */ /* { dg-skip-if "undefined weak not supported" { { hppa*-*-hpux* } && { ! lp64 } } } */ extern int __attribute__ ((weak)) Foo (); extern __inline int Foo () { return 0; /* count(-) */ } int (* __attribute__ ((noinline)) Bar ()) () { return Foo; /* count(1) */ } int main () { return Bar () != 0; /* count(1) */ } /* { dg-final { run-gcov { -a gcov-14.c } } } */
Go to most recent revision | Compare with Previous | Blame | View Log