1 /* { dg-require-effective-target alloca } */ 2 /* { dg-skip-if "limited code space" { pdp11-*-* } } */ 3 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 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; 15 16 int main()17main () 18 { 19 #ifndef SKIP_VLA_IN_STRUCT 20 struct_by_value_22_x (); 21 #endif 22 exit (0); 23 } 24