From e8115463c68a2b5ae19c0897bd1c8b9e8aa0a41c Mon Sep 17 00:00:00 2001 From: Janis Johnson Date: Mon, 5 May 2003 23:09:47 +0000 Subject: struct-by-value-1_main.c: New test file. 2003-05-05 Janis Johnson * gcc.dg/compat/struct-by-value-1_main.c: New test file. * gcc.dg/compat/struct-by-value-1_x.c: New test file. * gcc.dg/compat/struct-by-value-1_y.c: New test file. * gcc.dg/compat/struct-by-value-2_main.c: New test file. * gcc.dg/compat/struct-by-value-2_x.c: New test file. * gcc.dg/compat/struct-by-value-2_y.c: New test file. * gcc.dg/compat/struct-by-value-3_main.c: New test file. * gcc.dg/compat/struct-by-value-3_x.c: New test file. * gcc.dg/compat/struct-by-value-3_y.c: New test file. * gcc.dg/compat/struct-by-value-4_main.c: New test file. * gcc.dg/compat/struct-by-value-4_x.c: New test file. * gcc.dg/compat/struct-by-value-4_y.c: New test file. * gcc.dg/compat/struct-by-value-5_main.c: New test file. * gcc.dg/compat/struct-by-value-5_x.c: New test file. * gcc.dg/compat/struct-by-value-5_y.c: New test file. From-SVN: r66509 --- gcc/testsuite/gcc.dg/compat/struct-by-value-3_main.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/compat/struct-by-value-3_main.c (limited to 'gcc/testsuite/gcc.dg/compat/struct-by-value-3_main.c') 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 0000000..86fb4a3 --- /dev/null +++ b/gcc/testsuite/gcc.dg/compat/struct-by-value-3_main.c @@ -0,0 +1,14 @@ +/* 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 +main () +{ + struct_by_value_3_x (); + exit (0); +} -- cgit v1.1