Debian Codegraph @

tests/merge-args/src.result/test.d

raw
1 int total;
2 void a(int , int , int )
3 {
4 total++;
5 }
6 void b(int foo, int bar)(int )
7 {
8 total++;
9 }
10 void c(int foo, int bar, int baz)()
11 {
12 total++;
13 }
14 void d1(int foo, int , int )
15 {
16 total += foo;
17 }
18 void d2(int , int bar, int )
19 {
20 total += bar;
21 }
22 void d3(int , int , int baz)
23 {
24 total += baz;
25 }
26 import std.stdio;
27
28 void main()
29 {
30 a(1, 2, 3);
31 b!(1, 2)(3);
32 c!(1, 2, 3);
33
34 d1(1, 0, 0);
35 d2(0, 1, 0);
36 d3(0, 0, 1);
37
38 writeln(total==6);
39 }