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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.misc-tests/] [gcov-15.c] - Blame information for rev 690

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 690 jeremybenn
/* Test gcov multiple paths to file.  */
2
 
3
/* { dg-options "-fprofile-arcs -ftest-coverage" } */
4
/* { dg-do run { target native } } */
5
 
6
#if !RECURSIVE
7
#define RECURSIVE 1
8
#include "./gcov-15.c"
9
#undef RECURSIVE
10
#endif
11
 
12
static void __attribute__ ((noinline)) Recursive (void);
13
 
14
 
15
#if RECURSIVE
16
static void __attribute__ ((noinline))
17
Recursive ()
18
{
19
  return; /* count(1) */
20
}
21
 
22
#else
23
int main ()
24
{
25
  Recursive (); /* count(1) */
26
  return 0;
27
}
28
#endif
29
 
30
/* { dg-final { run-gcov { -a gcov-15.c } } } */

powered by: WebSVN 2.1.0

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