Debian Codegraph @

gcc/testsuite/gdc.dg/torture/imports/pr109108.d

raw
1 module imports.pr109108;
2 private enum int function(ref int)[] funs =
3 [
4 0: (ref idx) => 0,
5 1: (ref idx) => 1,
6 ];
7
8 int test109108(I)(I idx)
9 {
10 return funs[idx](idx);
11 }