staticdatamem.c

来自「linux下编程用 编译软件」· C语言 代码 · 共 21 行

C
21
字号
// PR c++/18925// { dg-do compile { target ia64-*-linux* } }// { dg-options "-fPIC -fvisibility=hidden" }// { dg-final { scan-assembler-not "gprel" } }class __attribute__ ((visibility("default"))) Type {  private:   static long _staticTypeCount;  public:   Type() { _staticTypeCount++; }   ~Type(); };  long Type::_staticTypeCount = 0;  Type::~Type() {  _staticTypeCount--; } 

⌨️ 快捷键说明

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