blob: f25434693918927f3be7ad92e3f00707f7258f54 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// { 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 ();
}
|