mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
5ae3ef3ae6
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
16 lines
220 B
C++
16 lines
220 B
C++
// 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 ();
|
|
}
|
|
}
|