]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/fail270.d
Add D front-end, libphobos library, and D2 testsuite.
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail270.d
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail270.d(12): Error: string slice `[1 .. 0]` is out of bounds
5 fail_compilation/fail270.d(12): Error: mixin fail270.Tuple!int.Tuple.Tuple!() error instantiating
6 fail_compilation/fail270.d(14): Error: mixin fail270.Tuple!int error instantiating
7 ---
8 */
9
10 struct Tuple(TList...)
11 {
12 mixin .Tuple!((TList[1 .. $])) tail;
13 }
14 mixin Tuple!(int);