gcc/testsuite/gdc.test/compilable/test10520.d
raw| 1 | // REQUIRED_ARGS: -debug -profile |
| 2 | |
| 3 | // https://issues.dlang.org/show_bug.cgi?id=10520 |
| 4 | // [profile+nothrow] Building with profiler results in "is not nothrow" error on some contracts |
| 5 | |
| 6 | void f() { } |
| 7 | |
| 8 | void g()() |
| 9 | in { f(); } // OK <- Error: 'main.f' is not nothrow |
| 10 | do { } |
| 11 | |
| 12 | alias gi = g!(); |