eh50.c
来自「gcc3.2.1源代码」· C语言 代码 · 共 22 行
C
22 行
// Special g++ Options: -fexceptions// excess errors test - XFAIL hppa*-*-* a29k-*-* sparc64-*-elf z8k-*-* arm-*-pe#include <exception>void my_unexpected() { throw 42;}template <class T> void foo(T) throw (int) { throw "Hi"; }main() { std::set_unexpected (my_unexpected); try { foo(1); } catch (int i) { if (i == 42) return 0; } return 1;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?