gcc/testsuite/gdc.test/fail_compilation/fail190.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/fail190.d(9): Error: cannot have pointer to `(int, int, int)` |
| 5 | fail_compilation/fail190.d(16): Error: template instance `fail190.f!(int, int, int)` error instantiating |
| 6 | --- |
| 7 | */ |
| 8 | |
| 9 | T* f(T...)(T x) |
| 10 | { |
| 11 | return null; |
| 12 | } |
| 13 | |
| 14 | void main() |
| 15 | { |
| 16 | auto x = f(2,3,4); |
| 17 | *x = *x; |
| 18 | } |