commit | 5ae3ef3ae6b8dc0792eb986ddb0142a9c50041b5 | [log] [tgz] |
---|---|---|
author | Duncan Sands <baldrick@free.fr> | Wed May 30 10:16:19 2007 +0000 |
committer | Duncan Sands <baldrick@free.fr> | Wed May 30 10:16:19 2007 +0000 |
tree | 17800abfe6567852222dbc61c81d1acf97302b69 | |
parent | 39a1c04323a5993d6b2993e615ec44c16e19aeea [diff] [blame] |
Testcase for http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070528/050047.html git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37359 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/C++Frontend/2007-05-23-TryFinally.cpp b/test/C++Frontend/2007-05-23-TryFinally.cpp new file mode 100644 index 0000000..5ae40d7 --- /dev/null +++ b/test/C++Frontend/2007-05-23-TryFinally.cpp
@@ -0,0 +1,15 @@ +// RUN: %llvmgxx %s -S -emit-llvm -O2 -o - | grep _Unwind_Resume | wc -l | grep {\[03\]} + +struct One { }; +struct Two { }; + +void handle_unexpected () { + try + { + throw; + } + catch (One &) + { + throw Two (); + } +}