summaryrefslogtreecommitdiff
path: root/test/sanitizer_common/TestCases/Linux/unexpected_format_specifier_test.cc
blob: f48cce8ea22b085cd8ce27fc8646891e82a79d41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang -w -O0 %s -o %t && %run %t 2>&1 | FileCheck %s
// UNSUPPORTED: lsan
// UNSUPPORTED: msan
#include <stdio.h>
int main() {
  int a;
  printf("%Q\n", 1);
  printf("%Q\n", 1);
  printf("%Q\n", 1);
}
// CHECK: unexpected format specifier in printf interceptor: %Q (reported once per process)
// CHECK-NOT: unexpected format specifier in printf interceptor