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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.misc-tests/] [gcov-2.c] - Blame information for rev 832

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

Line No. Rev Author Line
1 149 jeremybenn
/* Test Gcov basics.  */
2
 
3
/* { dg-options "-fprofile-arcs -ftest-coverage -g" } */
4
/* { dg-do run { target native } } */
5
 
6
void noop ()
7
{
8
}
9
 
10
int main ()
11
{
12
  int i;
13
 
14
  for (i = 0; i < 10; i++)       /* count(11) */
15
    noop ();                    /* count(10) */
16
 
17
  return 0;                      /* count(1) */
18
}
19
 
20
int a_variable = 0;
21
 
22
/* { dg-final { run-gcov gcov-2.c } } */

powered by: WebSVN 2.1.0

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