mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
25 lines
265 B
D
25 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);
|
|
}
|