Debian Codegraph @

gcc/testsuite/gdc.test/compilable/test23433.d

raw
1 // https://issues.dlang.org/show_bug.cgi?id=23433
2 module object;
3
4 class Throwable { }
5 class Exception : Throwable { this(immutable(char)[]) { } }
6
7 // Needed to lower `new Exception("ice")` to it.
8 T _d_newclassT(T)()
9 if (is(T == class))
10 {
11 return null;
12 }
13
14 void test23433()
15 {
16 try
17 {
18 throw new Exception("ice");
19 }
20 finally
21 {
22 }
23 }