d: Merge dmd. druntime e770945277, phobos 6d6e0b9b9
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / diag23355.d
blobc21226fa85ef79fd0bf6eeadc72e87da0a933604
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/diag23355.d(1): Error: undefined identifier `n`
5 fail_compilation/diag23355.d(4): Error: template `ffi1` is not callable using argument types `!()(int[4])`
6 fail_compilation/diag23355.d(1): Candidate is: `ffi1(T)(T[n] s)`
7 fail_compilation/diag23355.d(2): Error: undefined identifier `n`
8 fail_compilation/diag23355.d(4): Error: template `ffi2` is not callable using argument types `!()(int[4])`
9 fail_compilation/diag23355.d(2): Candidate is: `ffi2()(T[n] s)`
10 ---
12 #line 1
13 void ffi1(T)(T[n] s) { }
14 void ffi2()(T[n] s) { }
16 void main() { int[4] x; ffi1(x); ffi2(x); }