]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/runnable/imports/ice10857a.d
Add D front-end, libphobos library, and D2 testsuite.
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / runnable / imports / ice10857a.d
1 module imports.ice10857a;
2
3 template filter(alias pred)
4 {
5 auto filter(Range)(Range rs)
6 {
7 return FilterResult!(pred, Range)(rs);
8 }
9 }
10
11 private struct FilterResult(alias pred, R)
12 {
13 R _input;
14
15 void popFront()
16 {
17 assert(pred(_input[0]) == 123);
18 }
19 }