Debian Codegraph @

gcc/testsuite/gdc.test/runnable/test23083.d

raw
1 // https://issues.dlang.org/show_bug.cgi?id=23083
2 int calls = 0;
3
4 int[2] f()
5 {
6 calls++;
7 return [123, 456];
8 }
9
10 void g(int a, int b) {}
11
12 void main()
13 {
14 g(f().tupleof);
15 assert(calls == 1);
16 }