gcc/testsuite/gdc.test/fail_compilation/ice12235.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/ice12235.d(14): Error: forward reference to inferred return type of function `__lambda_L12_C5` |
| 5 | fail_compilation/ice12235.d(15): Error: forward reference to inferred return type of function `__lambda_L12_C5` |
| 6 | fail_compilation/ice12235.d(15): while evaluating `pragma(msg, __lambda_L12_C5.mangleof)` |
| 7 | --- |
| 8 | */ |
| 9 | |
| 10 | void main() |
| 11 | { |
| 12 | (){ |
| 13 | int x; |
| 14 | enum s = __traits(parent, x).mangleof; |
| 15 | pragma(msg, __traits(parent, x).mangleof); |
| 16 | }(); |
| 17 | } |