summaryrefslogtreecommitdiffstats
path: root/test/FixIt/fixit-newline-style.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/FixIt/fixit-newline-style.c')
-rw-r--r--test/FixIt/fixit-newline-style.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/FixIt/fixit-newline-style.c b/test/FixIt/fixit-newline-style.c
new file mode 100644
index 0000000..c43eb37
--- /dev/null
+++ b/test/FixIt/fixit-newline-style.c
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -pedantic -Wunused-label -x c %s 2>&1 | FileCheck %s -strict-whitespace
+
+// This file intentionally uses a CRLF newline style
+// <rdar://problem/12639047>
+// CHECK: warning: unused label 'ddd'
+// CHECK-NEXT: {{^ ddd:}}
+// CHECK-NEXT: {{^ \^~~~$}}
+void f() {
+ ddd:
+ ;
+}
OpenPOWER on IntegriCloud