Debian Codegraph @

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

raw
1 // EXTRA_SOURCES: imports/test16348.d
2 module mypackage.foo;
3
4 void bug()
5 {
6 // removing the if-else also removes the segfault
7 if (true) {}
8 else
9 {
10 import mypackage.bar;
11 auto b = bar();
12 }
13 }