gcc/testsuite/gcc.dg/compat/struct-return-19_main.c
raw| 1 | /* Test function return values. Struct members are char, int, double, |
| 2 | and other structs containing these types. This test was written in |
| 3 | response to a layout change for such structs for powerpc64-linux, |
| 4 | but this test only checks similar structs that are not affected by |
| 5 | that break in compatibility. */ |
| 6 | |
| 7 | extern void struct_return_19_x (void); |
| 8 | extern void exit (int); |
| 9 | int fails; |
| 10 | |
| 11 | int |
| 12 | main () |
| 13 | { |
| 14 | struct_return_19_x (); |
| 15 | exit (0); |
| 16 | } |