summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/fail_compilation/fail319.d
blob: cf56feecc53ff3d9bc90ab12ef69a2e2fee80120 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
TEST_OUTPUT:
---
fail_compilation/fail319.d(16): Error: template instance `fail319.f!(int, int)` does not match template declaration `f(T...)()`
  with `T = (int, int)`
  must satisfy the following constraint:
`       T.length > 20`
---
*/

void f(T...)() if (T.length > 20)
{}

void main()
{
    f!(int, int)();
}