xref: /llvm-project/clang/test/FixIt/attr-format.c (revision cd95d7998c1dd30c6353aeca2686697287cb0443)
1 // RUN: not %clang_cc1 %s -fsyntax-only -fdiagnostics-parseable-fixits 2>&1 | FileCheck %s
2 
3 // CHECK: fix-it:"{{.*}}attr-format.c":{4:36-4:37}:"0"
4 __attribute__((format(strftime, 1, 1)))
5 void my_strftime(const char *fmt);
6 
7 // CHECK: fix-it:"{{.*}}attr-format.c":{8:34-8:36}:"2"
8 __attribute__((format(printf, 1, 10)))
9 void my_strftime(const char *fmt, ...);
10