llvm-for-llvmta/tools/clang/test/SemaCXX/format-strings-0x-nopedanti...

11 lines
237 B
C++
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// 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);
}