]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/ice13220.d
Add D front-end, libphobos library, and D2 testsuite.
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / ice13220.d
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice13220.d(22): Error: template instance test!0 does not match template declaration test(T)()
5 ---
6 */
7
8 struct Tuple(T...)
9 {
10 T field;
11 alias field this;
12 }
13
14 template test(T)
15 {
16 bool test() { return false; };
17 }
18
19 void main()
20 {
21 Tuple!bool t;
22 t[0] = test!0();
23 }