template1.c

来自「xml大全 可读写调用率很高 xml大全 可读写调用率很高」· C语言 代码 · 共 20 行

C
20
字号
// { 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 ();}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?