[llvm-commits] CVS: llvm/test/C++Frontend/2007-05-23-TryFinally.cpp

Duncan Sands baldrick at free.fr
Wed May 30 03:16:40 PDT 2007



Changes in directory llvm/test/C++Frontend:

2007-05-23-TryFinally.cpp added (r1.1)
---
Log message:

Testcase for 
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070528/050047.html


---
Diffs of the changes:  (+15 -0)

 2007-05-23-TryFinally.cpp |   15 +++++++++++++++
 1 files changed, 15 insertions(+)


Index: llvm/test/C++Frontend/2007-05-23-TryFinally.cpp
diff -c /dev/null llvm/test/C++Frontend/2007-05-23-TryFinally.cpp:1.1
*** /dev/null	Wed May 30 05:16:29 2007
--- llvm/test/C++Frontend/2007-05-23-TryFinally.cpp	Wed May 30 05:16:19 2007
***************
*** 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 ();
+   }
+ }






More information about the llvm-commits mailing list