☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gdc.test
/
runnable
/
test6423.d
☽
☼
gcc/testsuite/gdc.test/runnable/test6423.d
code
plain
raw
1
// DISABLED: osx64
2
3
bool flag;
4
5
void f()
6
{
7
}
8
9
void main()
10
{
11
if (!flag)
12
{
13
flag = true;
14
caller();
15
}
16
return f();
17
}
18
19
alias maintype = extern(C) int function();
20
21
void caller()
22
{
23
auto fp = cast(maintype)&main;
24
assert(fp() == 0);
25
}