aboutsummaryrefslogtreecommitdiff
path: root/test/varargs+x86_64-sysv.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/varargs+x86_64-sysv.c')
-rw-r--r--test/varargs+x86_64-sysv.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/varargs+x86_64-sysv.c b/test/varargs+x86_64-sysv.c
index 71bf1d3..dfa1b98 100644
--- a/test/varargs+x86_64-sysv.c
+++ b/test/varargs+x86_64-sysv.c
@@ -24,3 +24,11 @@ void f3(int n, ...) {
}
__builtin_va_end(ap);
}
+
+void f4(...) {
+ __builtin_va_list ap;
+ __builtin_va_start(ap);
+ __builtin_va_arg(ap, double);
+ __builtin_va_arg(ap, int);
+ __builtin_va_end(ap);
+}