⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fntry1.c

📁 linux下编程用 编译软件
💻 C
字号:
// { dg-do run  }// Bug: g++ fails to treat function-try-blocks in ctors specially.// Submitted by Jason Merrill <jason@cygnus.com>int c;int r;struct A {  int i;  A(int j) { i = j; }  ~A() { c += i; }};struct B: public A {  A a;  B() try : A(1), a(2)    { throw 1; }  catch (...)    { if (c != 3) r |= 1; }};int main (){  try    { B b; }  catch (...)    { c = 0; }  if (c != 0) r |= 2;  return r;}

⌨️ 快捷键说明

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