]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gdc.test/compilable/test10520.d
d: Import dmd b8384668f, druntime e6caaab9, phobos 5ab9ad256 (v2.098.0-beta.1)
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / compilable / test10520.d
CommitLineData
b4c522fa
IB
1// REQUIRED_ARGS: -debug -profile
2
5fee5ec3
IB
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
b4c522fa
IB
5
6void f() { }
7
8void g()()
9in { f(); } // OK <- Error: 'main.f' is not nothrow
5fee5ec3 10do { }
b4c522fa
IB
11
12alias gi = g!();