new1_x.c

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

C
29
字号
#include <new>extern "C" void exit (int);extern "C" void abort (void);extern void * operator new[] (size_t s) throw (std::bad_alloc);extern void operator delete[] (void *p) throw ();struct A{  A() { throw 1; }  ~A() {}};int ret = 1;voidnew1_x (){  try    {      A *p = new A[4];    }  catch (...) {}  if (ret != 0)    abort ();  exit (0);}

⌨️ 快捷键说明

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