URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [inline11.C] - Rev 154
Compare with Previous | Blame | View Log
// { dg-do assemble }
// { dg-options "-O2" }
// Origin: Jakub Jelinek <jakub@redhat.com>
class baz
{
public:
baz& operator += (const baz&);
};
inline baz& baz::operator += (const baz& r)
{
return *this;
}
inline baz operator + (int x, const baz& y)
{
return y;
}
static inline baz bar (int alpha);
static inline baz foo (int alpha)
{
baz tmp = alpha + foo (alpha);
tmp += alpha + bar (alpha);
return tmp;
}
static inline baz bar (int alpha)
{
baz tmp = alpha + bar (alpha);
tmp += alpha + foo (alpha);
return tmp;
}