]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/fail6334.d
Add D front-end, libphobos library, and D2 testsuite.
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail6334.d
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail6334.d(12): Error: static assert `0` is false
5 ---
6 */
7
8 mixin template T1()
9 {
10 mixin T2; //compiles if these lines
11 mixin T2!(a, bb, ccc, dddd); //are before T2 declaration
12 mixin template T2() { static assert(0); }
13 }
14
15 void main()
16 {
17 mixin T1;
18 }