gcc/testsuite/gdc.test/fail_compilation/diag12280.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/diag12280.d(15): Error: undefined identifier `nonexistent` |
| 5 | fail_compilation/diag12280.d(13): Error: template instance `diag12280.f!10` error instantiating |
| 6 | fail_compilation/diag12280.d(18): 11 recursive instantiations from here: `f!0` |
| 7 | --- |
| 8 | */ |
| 9 | |
| 10 | void f(int i)() |
| 11 | { |
| 12 | static if (i < 10) |
| 13 | f!(i + 1); |
| 14 | else |
| 15 | nonexistent(); |
| 16 | } |
| 17 | |
| 18 | alias f0 = f!0; |