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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [gcov/] [gcov-6.C] - Blame information for rev 307

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

Line No. Rev Author Line
1 301 jeremybenn
// PR gcov-profile/34609
2
// { dg-do compile }
3
// { dg-options "-O -ftest-coverage" }
4
 
5
struct A
6
{
7
  int i;
8
  int &get () { return i; }
9
};
10
 
11
inline A foo ()
12
{
13
  A a;
14
  a.get ();
15
  return a;
16
}
17
 
18
inline A bar ()
19
{
20
  return foo ();
21
}
22
 
23
void baz ()
24
{
25
  A a;
26
  a = bar ();
27
}
28
 
29
// { dg-final { cleanup-coverage-files } }

powered by: WebSVN 2.1.0

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