diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/compat/struct-by-value-3_main.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/compat/struct-by-value-3_main.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/compat/struct-by-value-3_main.c b/gcc/testsuite/gcc.dg/compat/struct-by-value-3_main.c new file mode 100644 index 000000000..0b7206895 --- /dev/null +++ b/gcc/testsuite/gcc.dg/compat/struct-by-value-3_main.c @@ -0,0 +1,15 @@ +/* Test structures passed by value, including to a function with a + variable-length argument list. All struct members are scalar + integral types, and the structs are "small": 1, 2, 4, 8, and 12 + bytes for LP64. */ + +extern void struct_by_value_3_x (void); +extern void exit (int); +int fails; + +int +main () +{ + struct_by_value_3_x (); + exit (0); +} |