diff options
author | Richard Sandiford <rsandifo@redhat.com> | 2004-09-25 07:42:43 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@redhat.com> | 2004-09-25 07:42:43 +0000 |
commit | 58e087f1ea934371ad2823ec3079d7577945ddc4 (patch) | |
tree | 90430116073fbf3b6c8a83d28cfa69b716288c73 /gcc/testsuite/gcc.c-torture | |
parent | 2849e6b115b83bf2bd95af539fd1414324355a11 (diff) |
* config/mips/mips.h (struct mips_args): Clarify comments.
* config/mips/mips.c (struct mips_arg_info): Likewise.
(mips_arg_info): Don't allow fpr_p to affect the register or
stack alignment. Remove o64 silliness.
(function_arg): Deal with the o32 float,float case specially.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@88090 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.c-torture')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/va-arg-26.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/va-arg-26.c b/gcc/testsuite/gcc.c-torture/execute/va-arg-26.c new file mode 100644 index 00000000000..8221e9c42a5 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/va-arg-26.c @@ -0,0 +1,20 @@ +#include <stdarg.h> + +double f (float f1, float f2, float f3, float f4, + float f5, float f6, ...) +{ + va_list ap; + double d; + + va_start (ap, f6); + d = va_arg (ap, double); + va_end (ap); + return d; +} + +int main () +{ + if (f (1, 2, 3, 4, 5, 6, 7.0) != 7.0) + abort (); + exit (0); +} |