📄 unexpected1.c
字号:
// PR 3719// Test that an unexpected handler can rethrow to categorize.// { dg-do run }#include <exception>extern "C" void abort ();struct One { };struct Two { };static voidhandle_unexpected (){ try { throw; } catch (One &) { throw Two (); }}static voiddoit () throw (Two){ throw One ();}int main (){ std::set_unexpected (handle_unexpected); try { doit (); } catch (Two &) { } catch (...) { abort (); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -