blob: b10a5db754bd6aa090563cb5e77e9407c8cb2151 [file] [log] [blame]
Duncan Sands1e7f4ce2007-08-27 16:47:32 +00001// RUN: %llvmgxx %s -S -O2 -o - | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002// RUN: ignore grep {eh\.selector.*One.*Two.*Three.*Four.*Five.*Six.*null} | \
Duncan Sands1e7f4ce2007-08-27 16:47:32 +00003// RUN: wc -l | grep {\[01\]}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004
5extern void X(void);
6
7struct One {};
8struct Two {};
9struct Three {};
10struct Four {};
11struct Five {};
12struct Six {};
13
14static void A(void) throw ()
15{
16 X();
17}
18
19static void B(void) throw (Two)
20{
21 try { A(); } catch (One) {}
22}
23
24static void C(void) throw (Six, Five)
25{
26 try { B(); } catch (Three) {} catch (Four) {}
27}
28
29int main ()
30{
31 try { C(); } catch (...) {}
32}