]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/fail319.d
d: Import dmd b8384668f, druntime e6caaab9, phobos 5ab9ad256 (v2.098.0-beta.1)
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail319.d
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail319.d(16): Error: template instance `fail319.f!(int, int)` does not match template declaration `f(T...)()`
5 with `T = (int, int)`
6 must satisfy the following constraint:
7 ` T.length > 20`
8 ---
9 */
10
11 void f(T...)() if (T.length > 20)
12 {}
13
14 void main()
15 {
16 f!(int, int)();
17 }