| 1 |
/* { dg-require-effective-target alloca } |
| 2 |
See 'struct-by-value-22_y.c'. */ |
| 3 |
/* { dg-skip-if "limited code space" { pdp11-*-* } } */ |
| 4 |
|
| 5 |
/* Test variable sized function argument passing. |
| 6 |
GCC 3.2 and earlier is incompatible with GCC 3.3+ on x86-64, |
| 7 |
the latter passes variable sized arguments by reference while |
| 8 |
the former doesn't. |
| 9 |
See http://gcc.gnu.org/ml/gcc-patches/2003-01/msg01830.html */ |
| 10 |
|
| 11 |
#ifndef SKIP_VLA_IN_STRUCT |
| 12 |
extern void struct_by_value_22_x (void); |
| 13 |
#endif |
| 14 |
extern void exit (int); |
| 15 |
int fails; |
| 16 |
|
| 17 |
int |
| 18 |
main () |
| 19 |
{ |
| 20 |
#ifndef SKIP_VLA_IN_STRUCT |
| 21 |
struct_by_value_22_x (); |
| 22 |
#endif |
| 23 |
exit (0); |
| 24 |
} |