summaryrefslogtreecommitdiffstats
path: root/test/Sema/Inputs/format-unused-system-args.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/Inputs/format-unused-system-args.h')
-rw-r--r--test/Sema/Inputs/format-unused-system-args.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Sema/Inputs/format-unused-system-args.h b/test/Sema/Inputs/format-unused-system-args.h
new file mode 100644
index 0000000..3a6b165
--- /dev/null
+++ b/test/Sema/Inputs/format-unused-system-args.h
@@ -0,0 +1,8 @@
+// "System header" for testing that -Wformat-extra-args does not apply to
+// arguments specified in system headers.
+
+#define PRINT2(fmt, a1, a2) \
+ printf((fmt), (a1), (a2))
+
+#define PRINT1(fmt, a1) \
+ PRINT2((fmt), (a1), 0)
OpenPOWER on IntegriCloud