gcc/testsuite/gdc.test/fail_compilation/circ10280.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/circ10280.d(11): Error: circular initialization of variable `circ10280.q10280` |
| 5 | fail_compilation/circ10280.d(10): called from here: `foo10280()` |
| 6 | --- |
| 7 | */ |
| 8 | // https://issues.dlang.org/show_bug.cgi?id=10280 |
| 9 | |
| 10 | const int q10280 = foo10280(); |
| 11 | int foo10280() { return q10280; } |