2013-05-29 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / opt / template1.C
blobf25434693918927f3be7ad92e3f00707f7258f54
1 // { dg-options "-O2" }
2 // { dg-final { scan-assembler-not "\n_?_ZN1AILi0EE4foo1Ev\[: \t\n\]" } }
4 template <int>
5 struct A {
6     void foo1 () throw ();
7     void foo2 ();
9     void UNRELATED ();
12 template <> void A<0>::UNRELATED ();
14 template <int dim> inline void A<dim>::foo1 () throw () {}
15 template <int dim> inline void A<dim>::foo2 ()          {}
17 void bar (A<0> &a) {
18   a.foo1 ();