1 // ignore-tidy-cr ignore-license
\r
2 // ignore-tidy-cr (repeated again because of tidy bug)
\r
3 // license is ignored because tidy can't handle the CRLF here properly.
\r
5 // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
\r
6 // file at the top-level directory of this distribution and at
\r
7 // http://rust-lang.org/COPYRIGHT.
\r
9 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
\r
10 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
\r
11 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
\r
12 // option. This file may not be copied, modified, or distributed
\r
13 // except according to those terms.
\r
15 // N.B., this file needs CRLF line endings. The .gitattributes file in
\r
16 // this directory should enforce it.
\r
18 // ignore-pretty issue #37195
\r
20 /// Doc comment that ends in CRLF
\r
23 /** Block doc comment that
\r
24 * contains CRLF characters
\r
31 assert_eq!(s, "string\nliteral");
\r
33 let s = "literal with \
\r
35 assert_eq!(s, "literal with escaped newline");
\r
39 assert_eq!(s, "string\nliteral");
\r
41 // validate that our source file has CRLF endings
\r
42 let source = include_str!("lexer-crlf-line-endings-string-literal-doc-comment.rs");
\r
43 assert!(source.contains("string\r\nliteral"));
\r