]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gdc.test/fail_compilation/ice13644.d
d: Synchronize testsuite with upstream dmd
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / ice13644.d
CommitLineData
7da827c9
IB
1/*
2TEST_OUTPUT:
3---
4fail_compilation/ice13644.d(22): Error: foreach: key cannot be of non-integral type `string`
5---
6*/
b4c522fa
IB
7
8struct Tuple(T...)
9{
10 T field;
11 alias field this;
12}
13
14Tuple!(string, string)[] foo()
15{
16 Tuple!(string, string)[] res;
17 return res;
18}
19
20void main()
21{
22 foreach (string k2, string v2; foo())
23 {
24 }
25}