From 009b1c42aa6266385f2c37e227516b24077e6dd7 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Tue, 2 Jun 2009 17:52:33 +0000 Subject: Import LLVM, at r72732. --- test/FrontendC++/2007-05-23-TryFinally.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/FrontendC++/2007-05-23-TryFinally.cpp (limited to 'test/FrontendC++/2007-05-23-TryFinally.cpp') diff --git a/test/FrontendC++/2007-05-23-TryFinally.cpp b/test/FrontendC++/2007-05-23-TryFinally.cpp new file mode 100644 index 0000000000000..38f0b021aba00 --- /dev/null +++ b/test/FrontendC++/2007-05-23-TryFinally.cpp @@ -0,0 +1,16 @@ +// RUN: %llvmgxx %s -S -emit-llvm -O2 -o - | ignore grep _Unwind_Resume | \ +// RUN: wc -l | grep {\[23\]} + +struct One { }; +struct Two { }; + +void handle_unexpected () { + try + { + throw; + } + catch (One &) + { + throw Two (); + } +} -- cgit v1.2.3