OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [gcov/] [gcov-10.C] - Blame information for rev 801

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

Line No. Rev Author Line
1 693 jeremybenn
/* Ensure PIC sequence used for comdat functions */
2
 
3
/* { dg-options "-fprofile-arcs -ftest-coverage -fpic" } */
4
/* { dg-do run { target native } } */
5
/* { dg-require-effective-target fpic } */
6
 
7
inline int __attribute__ ((noinline)) Foo ()
8
{
9
  static int x[1];
10
 
11
  return x[0]++;  /* count (1) */
12
}
13
 
14
int main ()
15
{
16
  Foo ();  /* count (1) */
17
  return 0;  /* count (1) */
18
}
19
 
20
/* { dg-final { run-gcov gcov-10.C } } */

powered by: WebSVN 2.1.0

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