r256742 - Convert test/CXX/lex/lex.literal/lex.string/p4.cpp back to DOS line

Dimitry Andric via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 4 02:17:48 PST 2016


Author: dim
Date: Mon Jan  4 04:17:48 2016
New Revision: 256742

URL: http://llvm.org/viewvc/llvm-project?rev=256742&view=rev
Log:
Convert test/CXX/lex/lex.literal/lex.string/p4.cpp back to DOS line
endings, since the file is supposed to have them, according to its
comments.  Also set its svn:eol-style property.  Noticed by Nico Weber.

Modified:
    cfe/trunk/test/CXX/lex/lex.literal/lex.string/p4.cpp   (contents, props changed)

Modified: cfe/trunk/test/CXX/lex/lex.literal/lex.string/p4.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/lex/lex.literal/lex.string/p4.cpp?rev=256742&r1=256741&r2=256742&view=diff
==============================================================================
--- cfe/trunk/test/CXX/lex/lex.literal/lex.string/p4.cpp (original)
+++ cfe/trunk/test/CXX/lex/lex.literal/lex.string/p4.cpp Mon Jan  4 04:17:48 2016
@@ -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
+// 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', "");

Propchange: cfe/trunk/test/CXX/lex/lex.literal/lex.string/p4.cpp
------------------------------------------------------------------------------
    svn:eol-style = CRLF




More information about the cfe-commits mailing list