1 // PERMUTE_ARGS:
2 import core.stdc.stdarg;
3
4 struct ABC
5 {
6 int[4] x;
7 }
8
9 ABC abc;
10
11 int x,y,z;
12
13 extern (C):
test2v(int xx,int yy,int zz,...)14 ABC test2v(int xx, int yy, int zz, ...)
15 {
16 x = xx;
17 y = yy;
18 z = zz;
19 return abc;
20 }
21
22 extern (C++):
test3(int xx,int yy,int zz)23 ABC test3(int xx, int yy, int zz)
24 {
25 x = xx;
26 y = yy;
27 z = zz;
28 return abc;
29 }
30
test3v(int xx,int yy,int zz,...)31 ABC test3v(int xx, int yy, int zz, ...)
32 {
33 x = xx;
34 y = yy;
35 z = zz;
36 return abc;
37 }
38
39 extern (D):
test4(int xx,int yy,int zz)40 ABC test4(int xx, int yy, int zz)
41 {
42 x = xx;
43 y = yy;
44 z = zz;
45 return abc;
46 }
47
test4v(int xx,int yy,int zz,...)48 ABC test4v(int xx, int yy, int zz, ...)
49 {
50 x = xx;
51 y = yy;
52 z = zz;
53 return abc;
54 }
55