Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/opt/template1.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// { 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 (); }