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 // http://rust-lang.org/COPYRIGHT.
\r
8 // N.B., this file needs CRLF line endings. The .gitattributes file in
\r
9 // this directory should enforce it.
\r
11 // ignore-pretty issue #37195
\r
13 /// Doc comment that ends in CRLF
\r
16 /** Block doc comment that
\r
17 * contains CRLF characters
\r
24 assert_eq!(s, "string\nliteral");
\r
26 let s = "literal with \
\r
28 assert_eq!(s, "literal with escaped newline");
\r
32 assert_eq!(s, "string\nliteral");
\r
33 let s = br"byte string
\r
35 assert_eq!(s, "byte string\nliteral".as_bytes());
\r
37 // validate that our source file has CRLF endings
\r
38 let source = include_str!("lexer-crlf-line-endings-string-literal-doc-comment.rs");
\r
39 assert!(source.contains("string\r\nliteral"));
\r