2007-08-27 16:47:32 +00:00
|
|
|
// RUN: %llvmgxx %s -S -O2 -o - | \
|
2007-07-04 20:48:48 +00:00
|
|
|
// RUN: ignore grep {eh\.selector.*One.*Two.*Three.*Four.*Five.*Six.*null} | \
|
2007-08-27 16:47:32 +00:00
|
|
|
// RUN: wc -l | grep {\[01\]}
|
2007-07-04 20:48:48 +00:00
|
|
|
|
|
|
|
extern void X(void);
|
|
|
|
|
|
|
|
struct One {};
|
|
|
|
struct Two {};
|
|
|
|
struct Three {};
|
|
|
|
struct Four {};
|
|
|
|
struct Five {};
|
|
|
|
struct Six {};
|
|
|
|
|
|
|
|
static void A(void) throw ()
|
|
|
|
{
|
|
|
|
X();
|
|
|
|
}
|
|
|
|
|
|
|
|
static void B(void) throw (Two)
|
|
|
|
{
|
|
|
|
try { A(); } catch (One) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void C(void) throw (Six, Five)
|
|
|
|
{
|
|
|
|
try { B(); } catch (Three) {} catch (Four) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
int main ()
|
|
|
|
{
|
|
|
|
try { C(); } catch (...) {}
|
|
|
|
}
|