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 00000000000..46a55735573 --- /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; + } +}