gcc/testsuite/gdc.test/compilable/dlangui_crash.d
raw| 1 | // https://issues.dlang.org/show_bug.cgi?id=22365 |
| 2 | |
| 3 | class DrawableCache |
| 4 | { |
| 5 | Ref _nullDrawable; |
| 6 | |
| 7 | this() |
| 8 | { |
| 9 | debug Log; |
| 10 | } |
| 11 | } |
| 12 | |
| 13 | class DrawableCacheEmpty |
| 14 | { |
| 15 | Ref _nullDrawable; |
| 16 | |
| 17 | this() {} |
| 18 | } |
| 19 | |
| 20 | struct Ref |
| 21 | { |
| 22 | |
| 23 | ~this() |
| 24 | { |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | void foo() |
| 29 | { |
| 30 | try |
| 31 | debug Log; |
| 32 | catch (Exception) |
| 33 | assert(false); |
| 34 | } |