Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/opt/template1.C @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +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 (); }