]> granicus.if.org Git - clang/commitdiff
Convert test/CXX/lex/lex.literal/lex.string/p4.cpp back to DOS line
authorDimitry Andric <dimitry@andric.com>
Mon, 4 Jan 2016 10:17:48 +0000 (10:17 +0000)
committerDimitry Andric <dimitry@andric.com>
Mon, 4 Jan 2016 10:17:48 +0000 (10:17 +0000)
endings, since the file is supposed to have them, according to its
comments.  Also set its svn:eol-style property.  Noticed by Nico Weber.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@256742 91177308-0d34-0410-b5e6-96231b3b80d8

test/CXX/lex/lex.literal/lex.string/p4.cpp

index b73c8ed711a9fdce030f77bb341ee3bc27330d17..f8561ba17bcfd24e429520fcfc64d284ab95e104 100644 (file)
@@ -1,17 +1,17 @@
-// RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s
-// expected-no-diagnostics
-
-// NOTE: This file intentionally uses DOS-style line endings to test
-// that we don't propagate them into string literals as per [lex.string]p4.
-
-constexpr const char* p = R"(a\
-b
-c)";
-
-static_assert(p[0] == 'a',  "");
-static_assert(p[1] == '\\', "");
-static_assert(p[2] == '\n', "");
-static_assert(p[3] == 'b',  "");
-static_assert(p[4] == '\n', "");
-static_assert(p[5] == 'c',  "");
-static_assert(p[6] == '\0', "");
+// RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s\r
+// expected-no-diagnostics\r
+\r
+// NOTE: This file intentionally uses DOS-style line endings to test\r
+// that we don't propagate them into string literals as per [lex.string]p4.\r
+\r
+constexpr const char* p = R"(a\\r
+b\r
+c)";\r
+\r
+static_assert(p[0] == 'a',  "");\r
+static_assert(p[1] == '\\', "");\r
+static_assert(p[2] == '\n', "");\r
+static_assert(p[3] == 'b',  "");\r
+static_assert(p[4] == '\n', "");\r
+static_assert(p[5] == 'c',  "");\r
+static_assert(p[6] == '\0', "");\r