d: Merge upstream dmd, druntime 26f049fb26, phobos 330d6a4fd.
[official-gcc.git] / gcc / testsuite / gdc.test / compilable / test10520.d
blobd03b903d5710ccad8bf3dc762e756acb21a0c992
1 // REQUIRED_ARGS: -debug -profile
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
6 void f() { }
8 void g()()
9 in { f(); } // OK <- Error: 'main.f' is not nothrow
10 do { }
12 alias gi = g!();