URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 384 |
// PR gcov-profile/34609
|
// PR gcov-profile/34609
|
// { dg-do compile }
|
// { dg-do compile }
|
// { dg-options "-O -ftest-coverage" }
|
// { dg-options "-O -ftest-coverage" }
|
|
|
struct A
|
struct A
|
{
|
{
|
int i;
|
int i;
|
int &get () { return i; }
|
int &get () { return i; }
|
};
|
};
|
|
|
inline A foo ()
|
inline A foo ()
|
{
|
{
|
A a;
|
A a;
|
a.get ();
|
a.get ();
|
return a;
|
return a;
|
}
|
}
|
|
|
inline A bar ()
|
inline A bar ()
|
{
|
{
|
return foo ();
|
return foo ();
|
}
|
}
|
|
|
void baz ()
|
void baz ()
|
{
|
{
|
A a;
|
A a;
|
a = bar ();
|
a = bar ();
|
}
|
}
|
|
|
// { dg-final { cleanup-coverage-files } }
|
// { dg-final { cleanup-coverage-files } }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.