?? cleanup1.c
字號:
// { dg-do run }// Bug: obj gets destroyed twice because the fixups for the return are// inside its cleanup region.extern "C" int printf (const char *, ...);int d;struct myExc { };struct myExcRaiser { ~myExcRaiser() { throw myExc(); }};struct stackObj { ~stackObj() { ++d; printf ("stackObj::~stackObj()\n"); };};int test(){ myExcRaiser rais; stackObj obj; return 0;}int main(){ try { test(); } catch (myExc &) { return d != 1; } return 1;}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -