Wattributes-10.c: Add -fno-common option on hppa*-*-hpux*.
[official-gcc.git] / gcc / testsuite / gcc.dg / compat / struct-by-value-22_main.c
blob4a3851242e08c2de249e38aaf641d139c48d285d
1 /* { dg-require-effective-target alloca } */
2 /* { dg-skip-if "limited code space" { pdp11-*-* } } */
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 */
10 #ifndef SKIP_VLA_IN_STRUCT
11 extern void struct_by_value_22_x (void);
12 #endif
13 extern void exit (int);
14 int fails;
16 int
17 main ()
19 #ifndef SKIP_VLA_IN_STRUCT
20 struct_by_value_22_x ();
21 #endif
22 exit (0);