1// RUN: %clang -w -O0 %s -o %t && %run %t 2>&1 | FileCheck %s
2// UNSUPPORTED: hwasan
3// UNSUPPORTED: lsan
4// UNSUPPORTED: msan
5// UNSUPPORTED: ubsan
6#include <stdio.h>
7int main() {
8 int a;
9 printf(format: "%Q\n", 1);
10 printf(format: "%Q\n", 1);
11 printf(format: "%Q\n", 1);
12}
13// CHECK: unexpected format specifier in printf interceptor: %Q (reported once per process)
14// CHECK-NOT: unexpected format specifier in printf interceptor
15

source code of compiler-rt/test/sanitizer_common/TestCases/Linux/unexpected_format_specifier_test.cpp