]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/compat/struct-by-value-22_main.c
Move gcc.dg/compat dg-skip-if to *_main.c files
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / compat / struct-by-value-22_main.c
CommitLineData
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 11extern void struct_by_value_22_x (void);
6198329e 12#endif
9eca77eb 13extern void exit (int);
14int fails;
15
16int
17main ()
18{
6198329e 19#ifndef SKIP_VLA_IN_STRUCT
9eca77eb 20 struct_by_value_22_x ();
6198329e 21#endif
9eca77eb 22 exit (0);
23}