diff options
author | Janis Johnson <janis187@us.ibm.com> | 2003-09-19 21:09:52 +0000 |
---|---|---|
committer | Janis Johnson <janis@gcc.gnu.org> | 2003-09-19 21:09:52 +0000 |
commit | 99d53bba4d61a8bd5d23772111f1356aec94c6cc (patch) | |
tree | fd2ec64e6db2ab0e6d09629e2c76b213046226f6 /gcc/testsuite/gcc.dg/compat/struct-by-value-20_main.c | |
parent | ffd9060b5b10cc70fa8b93a3b2c2931628b9b12f (diff) | |
download | gcc-99d53bba4d61a8bd5d23772111f1356aec94c6cc.zip gcc-99d53bba4d61a8bd5d23772111f1356aec94c6cc.tar.gz gcc-99d53bba4d61a8bd5d23772111f1356aec94c6cc.tar.bz2 |
mixed-struct-check.h: New.
2003-09-19 Janis Johnson <janis187@us.ibm.com>
* gcc.dg/compat/mixed-struct-check.h: New.
* gcc.dg/compat/mixed-struct-defs.h: New.
* gcc.dg/compat/mixed-struct-init.h: New.
* gcc.dg/compat/struct-by-value-19_main.c: New.
* gcc.dg/compat/struct-by-value-19_x.c: New.
* gcc.dg/compat/struct-by-value-19_y.c: New.
* gcc.dg/compat/struct-by-value-20_main.c: New.
* gcc.dg/compat/struct-by-value-20_x.c: New.
* gcc.dg/compat/struct-by-value-20_y.c: New.
* gcc.dg/compat/struct-return-19_main.c: New.
* gcc.dg/compat/struct-return-19_x.c: New.
* gcc.dg/compat/struct-return-19_y.c: New.
* gcc.dg/compat/struct-return-20_main.c: New.
* gcc.dg/compat/struct-return-20_x.c: New.
* gcc.dg/compat/struct-return-20_y.c: New.
From-SVN: r71591
Diffstat (limited to 'gcc/testsuite/gcc.dg/compat/struct-by-value-20_main.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/compat/struct-by-value-20_main.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/compat/struct-by-value-20_main.c b/gcc/testsuite/gcc.dg/compat/struct-by-value-20_main.c new file mode 100644 index 0000000..64c8f27 --- /dev/null +++ b/gcc/testsuite/gcc.dg/compat/struct-by-value-20_main.c @@ -0,0 +1,16 @@ +/* Test structures passed by value, including to a function with a + variable-length argument list. Tested structs end with double. + This test was written in response to a layout change for such + structs for powerpc64-linux that breaks compatibility between + 3.3 and 3.4. */ + +extern void struct_by_value_20_x (void); +extern void exit (int); +int fails; + +int +main () +{ + struct_by_value_20_x (); + exit (0); +} |