aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/va-arg-4.c
diff options
context:
space:
mode:
authorno-author <no-author@gcc.gnu.org>2001-02-19 14:33:58 +0000
committerno-author <no-author@gcc.gnu.org>2001-02-19 14:33:58 +0000
commit81f958577f9cf907792e64814deee22eb8d4f280 (patch)
treeea0c47499a7187f73d7d489a24d19ad5fc42988d /gcc/testsuite/gcc.c-torture/execute/va-arg-4.c
parentf9555ee958bd43d88e090dd8d971cbc8ac9e78a1 (diff)
This commit was manufactured by cvs2svn to create taggcc-2_95_3-test4
'gcc-2_95_3-test4'. git-svn-id: https://gcc.gnu.org/svn/gcc/tags/gcc-2_95_3-test4@39882 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/va-arg-4.c')
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/va-arg-4.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/va-arg-4.c b/gcc/testsuite/gcc.c-torture/execute/va-arg-4.c
deleted file mode 100644
index a824f64ffa1..00000000000
--- a/gcc/testsuite/gcc.c-torture/execute/va-arg-4.c
+++ /dev/null
@@ -1,33 +0,0 @@
-/* On the i960 any arg bigger than 16 bytes causes all subsequent args
- to be passed on the stack. We test this. */
-
-#include <stdarg.h>
-
-typedef struct {
- char a[32];
-} big;
-
-void
-f (big x, char *s, ...)
-{
- va_list ap;
-
- if (x.a[0] != 'a' || x.a[1] != 'b' || x.a[2] != 'c')
- abort ();
- va_start (ap, s);
- if (va_arg (ap, int) != 42)
- abort ();
- if (va_arg (ap, int) != 'x')
- abort ();
- if (va_arg (ap, int) != 0)
- abort ();
- va_end (ap);
-}
-
-main ()
-{
- static big x = { "abc" };
-
- f (x, "", 42, 'x', 0);
- exit (0);
-}