ubuntu-buildroot/output/build/host-gcc-initial-11.4.0/gcc/testsuite/gdc.test/runnable/test6423.d

26 lines
265 B
D

// DISABLED: osx64
bool flag;
void f()
{
}
void main()
{
if (!flag)
{
flag = true;
caller();
}
return f();
}
alias maintype = extern(C) int function();
void caller()
{
auto fp = cast(maintype)&main;
assert(fp() == 0);
}