Fixed some bugs.
[llvm/zpu.git] / test / FrontendC++ / 2007-05-23-TryFinally.cpp
blob38f0b021aba00db2359d8b9c639365468f80c368
1 // RUN: %llvmgxx %s -S -emit-llvm -O2 -o - | ignore grep _Unwind_Resume | \
2 // RUN: wc -l | grep {\[23\]}
4 struct One { };
5 struct Two { };
7 void handle_unexpected () {
8 try
10 throw;
12 catch (One &)
14 throw Two ();