gcc/testsuite/gdc.test/compilable/test24107.d
raw| 1 | // https://issues.dlang.org/show_bug.cgi?id=24107 |
| 2 | |
| 3 | /* |
| 4 | TEST_OUTPUT: |
| 5 | --- |
| 6 | This should not output an error message: false |
| 7 | --- |
| 8 | */ |
| 9 | |
| 10 | bool recurse () |
| 11 | { |
| 12 | return recurse(); |
| 13 | } |
| 14 | |
| 15 | pragma(msg, |
| 16 | "This should not output an error message: ", |
| 17 | __traits(compiles, {enum bool r = recurse();})); |