diff options
Diffstat (limited to 'test/SemaCXX/format-strings-0x-nopedantic.cpp')
-rw-r--r-- | test/SemaCXX/format-strings-0x-nopedantic.cpp | 10 |
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 0000000..62e7ade --- /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); +} |