mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
140a2605af
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37488 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
226 B
C++
16 lines
226 B
C++
// RUN: %llvmgxx %s -S -emit-llvm -O2 -o - | grep -c {handle\\|_Unwind_Resume} | grep {\[14\]}
|
|
|
|
struct One { };
|
|
struct Two { };
|
|
|
|
void handle_unexpected () {
|
|
try
|
|
{
|
|
throw;
|
|
}
|
|
catch (One &)
|
|
{
|
|
throw Two ();
|
|
}
|
|
}
|