eb69.c

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

C
22
字号
// { dg-do assemble  }// Test that g++ complains about referring to a builtin type in a// mem-initializer.// Contributed by Kevin Buhr <buhr@stat.wisc.edu>int r = 0;struct foo {		        // { dg-error "" } candidate  foo(int x) { r = 1; }		// { dg-error "" } candidate};struct bar : foo {  typedef int an_int;  bar() : bar::an_int(3) {}	// { dg-error "" } not a base};intmain() {  bar b;  return r;}

⌨️ 快捷键说明

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