summaryrefslogtreecommitdiff
path: root/clang/test/SemaCXX/vararg-default-arg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/vararg-default-arg.cpp')
-rw-r--r--clang/test/SemaCXX/vararg-default-arg.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/vararg-default-arg.cpp b/clang/test/SemaCXX/vararg-default-arg.cpp
new file mode 100644
index 0000000..3c8e41c
--- /dev/null
+++ b/clang/test/SemaCXX/vararg-default-arg.cpp
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 %s -verify -fsyntax-only
+// PR5462
+
+void f1(void);
+void f2(const char * = __null, ...);
+
+void f1(void)
+{
+ f2();
+}