diff options
-rw-r--r-- | test/C++Frontend/2003-08-20-ExceptionFail.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/C++Frontend/2003-08-20-ExceptionFail.cpp b/test/C++Frontend/2003-08-20-ExceptionFail.cpp new file mode 100644 index 0000000000..dfad1bff8e --- /dev/null +++ b/test/C++Frontend/2003-08-20-ExceptionFail.cpp @@ -0,0 +1,13 @@ +void foo(); + +void bar() { + struct local { + ~local() { foo(); } + } local_obj; + + try { + foo(); + } catch(...) { + } +} + |