]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/compilable/test15780.d
Add D front-end, libphobos library, and D2 testsuite.
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / compilable / test15780.d
1 // PERMUTE_ARGS:
2 // https://issues.dlang.org/show_bug.cgi?id=15780
3
4 import std.typecons;
5 //import std.stdio;
6
7 void foo(alias fields)() {
8 foreach(i, field; fields) {
9 enum string a = fields[i]; // OK
10 enum string b = field; // not OK with 2.069.2 ???
11 //writeln(field);
12 }
13 }
14
15 void main() {
16 foo!(tuple("H", "I"))();
17 }