summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/color_warning.c
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/color_warning.c')
-rw-r--r--Tests/RunCMake/color_warning.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/color_warning.c b/Tests/RunCMake/color_warning.c
new file mode 100644
index 000000000..831abd96a
--- /dev/null
+++ b/Tests/RunCMake/color_warning.c
@@ -0,0 +1,7 @@
+#include <stdio.h>
+int main(void)
+{
+ printf(
+ "/tmp/hello.c:3:2: \033[35mwarning:\033[0m Hello, World! [-W#warnings]\n");
+ return 0;
+}