mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
54 lines
602 B
D
54 lines
602 B
D
// PERMUTE_ARGS:
|
|
import core.stdc.stdarg;
|
|
|
|
struct ABC
|
|
{
|
|
int[4] x;
|
|
}
|
|
|
|
ABC abc;
|
|
|
|
int x,y,z;
|
|
|
|
extern (C):
|
|
ABC test2v(int xx, int yy, int zz, ...)
|
|
{
|
|
x = xx;
|
|
y = yy;
|
|
z = zz;
|
|
return abc;
|
|
}
|
|
|
|
extern (C++):
|
|
ABC test3(int xx, int yy, int zz)
|
|
{
|
|
x = xx;
|
|
y = yy;
|
|
z = zz;
|
|
return abc;
|
|
}
|
|
|
|
ABC test3v(int xx, int yy, int zz, ...)
|
|
{
|
|
x = xx;
|
|
y = yy;
|
|
z = zz;
|
|
return abc;
|
|
}
|
|
|
|
extern (D):
|
|
ABC test4(int xx, int yy, int zz)
|
|
{
|
|
x = xx;
|
|
y = yy;
|
|
z = zz;
|
|
return abc;
|
|
}
|
|
|
|
ABC test4v(int xx, int yy, int zz, ...)
|
|
{
|
|
x = xx;
|
|
y = yy;
|
|
z = zz;
|
|
return abc;
|
|
}
|