summaryrefslogtreecommitdiff
path: root/test/FileCheck
diff options
context:
space:
mode:
authorGuy Benyei <guy.benyei@intel.com>2013-02-06 20:40:38 +0000
committerGuy Benyei <guy.benyei@intel.com>2013-02-06 20:40:38 +0000
commit4cc74fcba06ce43ee325510dc6137bd050f96c68 (patch)
tree7c1ef5e32c401110c0c60a02aa37c125736cf4fc /test/FileCheck
parentc3662eeaa4a1a4061fc6d5c81e3eed48c5d9da26 (diff)
downloadllvm-4cc74fcba06ce43ee325510dc6137bd050f96c68.tar.gz
llvm-4cc74fcba06ce43ee325510dc6137bd050f96c68.tar.bz2
llvm-4cc74fcba06ce43ee325510dc6137bd050f96c68.tar.xz
Canonicalize line endings to Linux style also when the --strict-whitespace flag is in use. This flag is supposed to affect horizontal whitespaces only.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174541 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FileCheck')
-rw-r--r--test/FileCheck/dos-style-eol.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/FileCheck/dos-style-eol.txt b/test/FileCheck/dos-style-eol.txt
new file mode 100644
index 0000000000..4252aad4d3
--- /dev/null
+++ b/test/FileCheck/dos-style-eol.txt
@@ -0,0 +1,11 @@
+// Test for using FileCheck on DOS style end-of-line
+// This test was deliberately committed with DOS style end of line.
+// Don't change line endings!
+// RUN: FileCheck -input-file %s %s
+// RUN: FileCheck --strict-whitespace -input-file %s %s
+
+LINE 1
+; CHECK: {{^}}LINE 1{{$}}
+
+LINE 2
+; CHECK: {{^}}LINE 2{{$}} \ No newline at end of file