URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.dg/] [opt/] [template1.C] - Rev 384
Compare with Previous | Blame | View Log
// { dg-options "-O2" }
// { dg-final { scan-assembler-not "\n_?_ZN1AILi0EE4foo1Ev\[: \t\n\]" } }
template <int>
struct A {
void foo1 () throw ();
void foo2 ();
void UNRELATED ();
};
template <> void A<0>::UNRELATED ();
template <int dim> inline void A<dim>::foo1 () throw () {}
template <int dim> inline void A<dim>::foo2 () {}
void bar (A<0> &a) {
a.foo1 ();
}