2007-06-15 17:13:53 +00:00
|
|
|
// RUN: %llvmgxx %s -S -emit-llvm -O2 -o - | ignore grep _Unwind_Resume | \
|
|
|
|
// RUN: wc -l | grep {\[03\]}
|
2007-05-30 10:16:19 +00:00
|
|
|
|
|
|
|
struct One { };
|
|
|
|
struct Two { };
|
|
|
|
|
|
|
|
void handle_unexpected () {
|
|
|
|
try
|
|
|
|
{
|
|
|
|
throw;
|
|
|
|
}
|
|
|
|
catch (One &)
|
|
|
|
{
|
|
|
|
throw Two ();
|
|
|
|
}
|
|
|
|
}
|