Fix PR3075, __builtin_stdarg_start being misprototyped. This affects netbsd headers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59419 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/varargs.c b/test/Sema/varargs.c
index 90568e0..efde2f0 100644
--- a/test/Sema/varargs.c
+++ b/test/Sema/varargs.c
@@ -25,3 +25,12 @@
__builtin_va_start(ap, a);
__builtin_va_start(ap, (a));
}
+
+
+// stdarg: PR3075
+void f4(const char *msg, ...) {
+ __builtin_va_list ap;
+ __builtin_stdarg_start((ap), (msg));
+ __builtin_va_end (ap);
+}
+