wctor-dtor.c
来自「用于进行gcc测试」· C语言 代码 · 共 14 行
C
14 行
// PR c++/21347// { dg-options "-Wctor-dtor-privacy" }class A {public: int x; int getX() { return x; } // comment out to avoid warning};int foo() { A a; // accepted: clearly the ctor is not private return a.x;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?