kext4.c
来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 28 行
C
28 行
/* APPLE LOCAL file KEXT double destructor *//* { dg-do compile } *//* { dg-options "-fapple-kext" } *//* test for use of apple_kext_compatibility on stack */struct B1 { virtual ~B1();} __attribute__((apple_kext_compatibility));struct D1 : B1 { void operator delete(void *) { } D1();};struct D2 : B1 { void operator delete(void *); D2();};struct D3 : B1 { D3();};void foo() { D1 d1; // ok D2 d2; // { dg-warning "is an instance of a class" } D3 d3; // { dg-warning "is an instance of a class" }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?