diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-30 11:44:50 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-30 11:44:50 +0000 |
commit | 9eca77eb37542b5dd64aaa7c112e25f0cce5db7a (patch) | |
tree | c31e514e1630a21bca337dae60d50a4a71403179 /gcc/testsuite/gcc.dg/compat/struct-by-value-22_main.c | |
parent | 4e0a37eb118442ceac3481d71db9ceae13729f7e (diff) | |
download | gcc-9eca77eb37542b5dd64aaa7c112e25f0cce5db7a.tar.gz |
* gcc.dg/compat/struct-by-value-22_main.c: New test.
* gcc.dg/compat/struct-by-value-22_x.c: New.
* gcc.dg/compat/struct-by-value-22_y.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83903 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/compat/struct-by-value-22_main.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/compat/struct-by-value-22_main.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/compat/struct-by-value-22_main.c b/gcc/testsuite/gcc.dg/compat/struct-by-value-22_main.c new file mode 100644 index 00000000000..7f005ef0d88 --- /dev/null +++ b/gcc/testsuite/gcc.dg/compat/struct-by-value-22_main.c @@ -0,0 +1,16 @@ +/* Test variable sized function argument passing. + GCC 3.2 and earlier is incompatible with GCC 3.3+ on x86-64, + the latter passes variable sized arguments by reference while + the former doesn't. + See http://gcc.gnu.org/ml/gcc-patches/2003-01/msg01830.html */ + +extern void struct_by_value_22_x (void); +extern void exit (int); +int fails; + +int +main () +{ + struct_by_value_22_x (); + exit (0); +} |