aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg-Johann Lay <avr@gjlay.de>2024-10-03 15:19:21 +0200
committerGeorg-Johann Lay <avr@gjlay.de>2024-10-03 15:22:47 +0200
commit8d63d87c6d45bf8feecdaf54b1743c94938ce7ff (patch)
tree6b45c1ade530066dc456eb0137d38096a585227f
parent0d9d6872089b212c0bf3768a32de9bfbde9e5a17 (diff)
downloadgcc-8d63d87c6d45bf8feecdaf54b1743c94938ce7ff.zip
gcc-8d63d87c6d45bf8feecdaf54b1743c94938ce7ff.tar.gz
gcc-8d63d87c6d45bf8feecdaf54b1743c94938ce7ff.tar.bz2
AVR: Make gcc.dg/c23-stdarg-9.c work.
gcc/testsuite/ * gcc.dg/c23-stdarg-9.c (struct S) [AVR]: Only use int a[500].
-rw-r--r--gcc/testsuite/gcc.dg/c23-stdarg-9.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/c23-stdarg-9.c b/gcc/testsuite/gcc.dg/c23-stdarg-9.c
index e2839e7..068fe3d 100644
--- a/gcc/testsuite/gcc.dg/c23-stdarg-9.c
+++ b/gcc/testsuite/gcc.dg/c23-stdarg-9.c
@@ -5,7 +5,12 @@
#include <stdarg.h>
+#ifdef __AVR__
+/* AVR doesn't have that much stack... */
+struct S { int a[500]; };
+#else
struct S { int a[1024]; };
+#endif
int
f1 (...)