eh44.c

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

C
37
字号
// Special g++ Options: -fexceptions// excess errors test - XFAIL a29k-*-* sparc64-*-elf arm-*-pe// prms-id: 9159static unsigned int iCounter = 0;static unsigned int iMax;int fail = 0;class ca {public:  ca(int) {    if (iCounter++ == iMax)      throw (const char*)"iCounter";  }  virtual ~ca() {  }};class cc {public:  cc(const ca &rca1, const ca &rca2) {  }  virtual ~cc() {    fail = 1;  }};int main(int argc, char **argv) {  iMax = 1;  try {    cc sc(ca(1), ca(1));  } catch (const char *pMsg) {  }  return fail;}

⌨️ 快捷键说明

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