summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/compat/struct-by-value-19_main.c
diff options
context:
space:
mode:
authorjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-19 21:09:52 +0000
committerjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-19 21:09:52 +0000
commitf2c587194d987c774c231a386aee404a22a6eda8 (patch)
treefd2ec64e6db2ab0e6d09629e2c76b213046226f6 /gcc/testsuite/gcc.dg/compat/struct-by-value-19_main.c
parent1237664bbec2bced415ed5eb1b41b6619de61412 (diff)
downloadgcc-f2c587194d987c774c231a386aee404a22a6eda8.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71591 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/compat/struct-by-value-19_main.c')
-rw-r--r--gcc/testsuite/gcc.dg/compat/struct-by-value-19_main.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/compat/struct-by-value-19_main.c b/gcc/testsuite/gcc.dg/compat/struct-by-value-19_main.c
new file mode 100644
index 00000000000..b0eed4c3a2f
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/compat/struct-by-value-19_main.c
@@ -0,0 +1,17 @@
+/* Test structures passed by value, including to a function with a
+ variable-length argument list. Struct members are char, int, double,
+ and other structs containing these types. This test was written in
+ response to a layout change for such structs for powerpc64-linux,
+ but this test only checks similar structs that are not affected by
+ that break in compatibility. */
+
+extern void struct_by_value_19_x (void);
+extern void exit (int);
+int fails;
+
+int
+main ()
+{
+ struct_by_value_19_x ();
+ exit (0);
+}