anon6.c

来自「用于进行gcc测试」· C语言 代码 · 共 29 行

C
29
字号
// PR c++/33094// { dg-final { scan-assembler "1BIiE1cE" } }// { dg-final { scan-assembler-not "globl.*1BIiE1cE" } }// { dg-final { scan-assembler-not "1CIiE1cE" } }// Test that B<int>::c is emitted as an internal symbol, and C<int>::c is// not emitted.namespace{  template <typename T>  class A  {    virtual T f1() { return c; }    static const T c = 0;  };  template <typename T>  class B  {    static const T c = 0;  };  template <typename T> const T B<T>::c;  template class A<int>;  template class B<int>;}

⌨️ 快捷键说明

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