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