diff options
-rw-r--r-- | test/C++Frontend/EH/dead_try_block.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/C++Frontend/EH/dead_try_block.cpp b/test/C++Frontend/EH/dead_try_block.cpp new file mode 100644 index 0000000000..46a5573557 --- /dev/null +++ b/test/C++Frontend/EH/dead_try_block.cpp @@ -0,0 +1,11 @@ +// This testcase doesn't actually DO any EH + +static void foo() {} +int main() { + try { + foo(); + return 0; + } catch(...) { + return 1; + } +} |