| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-std=c99" } */ |
| 3 |
|
| 4 |
struct A |
| 5 |
{ |
| 6 |
char str[8]; |
| 7 |
void* v; |
| 8 |
}; |
| 9 |
|
| 10 |
int varf (char* fmt, ...); |
| 11 |
|
| 12 |
void foo (struct A a, struct A b) |
| 13 |
{ |
| 14 |
varf ("%s%s", b.str, b.str); |
| 15 |
} |
| 16 |
|
| 17 |
long long x64; |
| 18 |
|
| 19 |
void foo2 (long long j0, |
| 20 |
struct A a, struct A b, struct A c, struct A d, |
| 21 |
struct A e, struct A f, struct A g, struct A h, struct A i, |
| 22 |
long long j1) |
| 23 |
{ |
| 24 |
varf ("%s%s", i.str, i.str, x64, j1+j0); |
| 25 |
} |
| 26 |
|
| 27 |
|
| 28 |
void foo3 (long long j0, |
| 29 |
struct A a, struct A b, struct A c, struct A d, |
| 30 |
struct A e, struct A f, struct A g, struct A h, struct A i, |
| 31 |
long long j1) |
| 32 |
{ |
| 33 |
varf ("%s%s", &i.str, &b.str, x64, j1+j0); |
| 34 |
} |