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