summaryrefslogtreecommitdiff
path: root/clang/test/Sema/vfprintf-valid-redecl.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/vfprintf-valid-redecl.c')
-rw-r--r--clang/test/Sema/vfprintf-valid-redecl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Sema/vfprintf-valid-redecl.c b/clang/test/Sema/vfprintf-valid-redecl.c
new file mode 100644
index 0000000..14fbbc4
--- /dev/null
+++ b/clang/test/Sema/vfprintf-valid-redecl.c
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 %s -fsyntax-only -pedantic -verify
+// PR4290
+
+// The following declaration is compatible with vfprintf, so we shouldn't
+// warn.
+int vfprintf();