gcc/testsuite/gdc.test/fail_compilation/fail6781.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/fail6781.d(9): Error: undefined identifier `some_error` |
| 5 | fail_compilation/fail6781.d(14): Error: template instance `fail6781.C6781.makeSortedIndices.bug6781!(greater)` error instantiating |
| 6 | --- |
| 7 | */ |
| 8 | void bug6781(alias xxx)() { |
| 9 | some_error; |
| 10 | } |
| 11 | struct C6781 { |
| 12 | void makeSortedIndices() { |
| 13 | int greater; |
| 14 | bug6781!greater(); |
| 15 | } |
| 16 | } |