decl3.c
来自「this is a gcc file, you can download it 」· C语言 代码 · 共 20 行
C
20 行
// Build don't link:// Origin: Adapted by Nathan Sidwell 29 Apr 1999 <nathan@acm.org>// from a test case submitted by Corey Kosak <kosak@cs.cmu.edu>// http://gcc.gnu.org/ml/gcc-bugs/1999-04n/msg00505.html// We should not allow arrays of abstract type. [class.abstract/2]struct cow_t { virtual void f()=0; // ERROR - abstract};int main(){ cow_t cow[2]; // ERROR - abstract class cow[0].f(); return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?