blob: 641495508ba1097fe80441011bac4a36e5ab651f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// RUN: %clang -w -O0 %s -o %t && %run %t 2>&1 | FileCheck %s
// UNSUPPORTED: lsan
// UNSUPPORTED: msan
// UNSUPPORTED: ubsan
#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
|