aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/format-strings-0x-nopedantic.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/format-strings-0x-nopedantic.cpp')
-rw-r--r--test/SemaCXX/format-strings-0x-nopedantic.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/SemaCXX/format-strings-0x-nopedantic.cpp b/test/SemaCXX/format-strings-0x-nopedantic.cpp
new file mode 100644
index 000000000000..62e7adef44bc
--- /dev/null
+++ b/test/SemaCXX/format-strings-0x-nopedantic.cpp
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -fsyntax-only -verify -Wformat -std=c++11 %s
+// expected-no-diagnostics
+extern "C" {
+extern int scanf(const char *restrict, ...);
+extern int printf(const char *restrict, ...);
+}
+
+void f(char *c) {
+ printf("%p", c);
+}