dtor6.c

来自「this is a gcc file, you can download it 」· C语言 代码 · 共 45 行

C
45
字号
// Origin: Mark Mitchell <mark@codesourcery.com>extern "C" void abort ();int count;struct S{  S ();  S (const S&);  ~S ();  int i;};S::S (){  i = count++;}S::S (const S&){  i = count++;}S::~S (){  if (--count != i)    abort ();}void f (S, S){}int main (){  {    S s;    f (s, s);  }  return count != 0;}

⌨️ 快捷键说明

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