summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/pseudo_tidy.c
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/pseudo_tidy.c')
-rw-r--r--Tests/RunCMake/pseudo_tidy.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/Tests/RunCMake/pseudo_tidy.c b/Tests/RunCMake/pseudo_tidy.c
new file mode 100644
index 0000000..766c990
--- /dev/null
+++ b/Tests/RunCMake/pseudo_tidy.c
@@ -0,0 +1,16 @@
+#include <stdio.h>
+
+int main(int argc, char* argv[])
+{
+ int i;
+ for (i = 1; i < argc; ++i)
+ {
+ if (argv[i][0] != '-')
+ {
+ fprintf(stdout, "%s:0:0: warning: message [checker]\n", argv[i]);
+ break;
+ }
+ }
+ fprintf(stderr, "1 warning generated.\n");
+ return 0;
+}