URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [g++.dg/] [ext/] [always_inline-5.C] - Rev 516
Compare with Previous | Blame | View Log
// { dg-do compile }
struct f
{
inline f(void);
inline void f1(void);
int a;
};
inline __attribute__((always_inline)) f::f(void)
{
a++;
}
inline __attribute__((always_inline)) void f::f1(void)
{
a++;
}
void g(void)
{
f a, b, c, d;
a.f1();
}
// f::f() should be inlined even at -O0
// { dg-final { scan-assembler-not "_ZN1fC1Ev" } }
// Likewise for f::f1()
// { dg-final { scan-assembler-not "_ZN1f2f1Ev" } }