mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
16 lines
203 B
D
16 lines
203 B
D
// https://issues.dlang.org/show_bug.cgi?id=23083
|
|
int calls = 0;
|
|
|
|
int[2] f()
|
|
{
|
|
calls++;
|
|
return [123, 456];
|
|
}
|
|
|
|
void g(int a, int b) {}
|
|
|
|
void main()
|
|
{
|
|
g(f().tupleof);
|
|
assert(calls == 1);
|
|
}
|