| 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): |
| 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++): |
| 23 |
ABC test3(int xx, int yy, int zz) |
| 24 |
{ |
| 25 |
x = xx; |
| 26 |
y = yy; |
| 27 |
z = zz; |
| 28 |
return abc; |
| 29 |
} |
| 30 |
|
| 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): |
| 40 |
ABC test4(int xx, int yy, int zz) |
| 41 |
{ |
| 42 |
x = xx; |
| 43 |
y = yy; |
| 44 |
z = zz; |
| 45 |
return abc; |
| 46 |
} |
| 47 |
|
| 48 |
ABC test4v(int xx, int yy, int zz, ...) |
| 49 |
{ |
| 50 |
x = xx; |
| 51 |
y = yy; |
| 52 |
z = zz; |
| 53 |
return abc; |
| 54 |
} |