diff options
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 000000000..64c8f27ae --- /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); +} |