| 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(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 |
