wextra-1.c

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

C
13
字号
// { dg-options "-Wextra" }struct T {  // If the implicitly-declared default constructor for "T" is  // required, an error will be issued because "i" cannot be  // initialized.  And, this class is not an aggregate, so it cannot  // be brace-initialized.  Thus, there is no way to create an object  // of this class.  We issue a warning with -Wextra.  const int i;			// { dg-warning "const" }private:  int j;};

⌨️ 快捷键说明

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