]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/fail134.d
Add D front-end, libphobos library, and D2 testsuite.
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail134.d
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail134.d(13): Error: template instance foo!(f) does not match template declaration foo(T)
5 fail_compilation/fail134.d(14): Error: template instance fail134.bar!(f) error instantiating
6 ---
7 */
8
9 // Issue 651 - Assertion failure: 'global.errors' on line 2622 in file 'template.c'
10
11 void f() {}
12 template foo(T) {}
13 template bar(T...) { alias foo!(T) buz; }
14 alias bar!(f) a;