OpenCores
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] - Blame information for rev 747

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 690 jeremybenn
/* Test gcov extern inline.  */
2
 
3
/* { dg-options "-O2 -fprofile-arcs -ftest-coverage" } */
4
/* The following line arranges that Darwin has behavior like elf weak import.  */
5
/* { dg-additional-options "-flat_namespace -undefined suppress" { target *-*-darwin* }  } */
6
/* { dg-require-weak "" } */
7
/* { dg-do run { target native } } */
8
/* { dg-skip-if "undefined weak not supported" { alpha*-dec-osf* } } */
9
/* { dg-skip-if "undefined weak not supported" { { hppa*-*-hpux* } && { ! lp64 } } } */
10
 
11
extern int __attribute__ ((weak)) Foo ();
12
 
13
extern __inline int Foo ()
14
{
15
  return 0; /* count(-) */
16
}
17
 
18
int (* __attribute__ ((noinline)) Bar ()) ()
19
{
20
  return Foo; /* count(1) */
21
}
22
 
23
int main ()
24
{
25
  return Bar () != 0; /* count(1) */
26
}
27
 
28
/* { dg-final { run-gcov { -a gcov-14.c } } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.