Debian Codegraph @

compiler-rt/test/sanitizer_common/TestCases/Linux/unexpected_format_specifier_test.cpp

raw
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>
7 int main() {
8 int a;
9 printf("%Q\n", 1);
10 printf("%Q\n", 1);
11 printf("%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