llvm-project/clang/test/SemaCXX/format-strings-0x-nopedantic.cpp
Daniel Jasper ad8d849f48 Move one more diagnostic into the new -Wformat-pedantic group.
This was apparently overlooked in r231211.

llvm-svn: 231242
2015-03-04 14:18:20 +00:00

11 lines
237 B
C++

// 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);
}