mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-15 05:25:55 +00:00
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 ();
|
||
|
}
|
||
|
}
|