]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/gdc.test/compilable/test16031.d
Add D front-end, libphobos library, and D2 testsuite.
[gcc.git] / gcc / testsuite / gdc.test / compilable / test16031.d
1 // REQUIRED_ARGS: -fPIC -lib
2 // PERMUTE_ARGS:
3 // DISABLED: win32 win64
4 extern void throwing();
5
6 void foo()
7 {
8 // create plenty of symbols, so that the catch references get a high symbol index
9 static int a0, a1, a2, a3, a4, a5, a6, a7, a8, a9,
10 b0, b1, b2, b3, b4, b5, b6, b7, b8, b9,
11 c0, c1, c2, c3, c4, c5, c6, c7, c8, c9,
12 d0, d1, d2, d3, d4, d5, d6, d7, d8, d9;
13 try
14 {
15 throwing();
16 }
17 catch (Exception)
18 {
19 }
20 }
21
22 void bar()
23 {
24 try
25 {
26 throwing();
27 }
28 // symbol index for DW.ref._D9Exception7__ClassZ
29 // gets reused for another object and is out of bounds
30 catch (Exception)
31 {
32 }
33 }
This page took 0.036385 seconds and 5 git commands to generate.