blob: 035d5bbcf33cc5d70fc2fcced1b49fbb2db99f46 [file] [log] [blame]
Duncan Sandsb2e18602007-07-04 20:48:48 +00001// RUN: %llvmgxx %s -S -emit-llvm -O2 -o - | \
2// RUN: ignore grep {eh\.selector.*One.*Two.*Three.*Four.*Five.*Six.*null} | \
3// RUN: wc -l | grep {\[02\]}
4
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}