dmd/compiler/test/runnable/test23083.d
2022-07-09 18:53:07 +02:00

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);
}