summaryrefslogtreecommitdiffstats
path: root/tests/ui/include-macros/normalization.rs
blob: 889f08e606ec9a7b610d409e316b6fc8c1bb30a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// run-pass

fn main() {
    assert_eq!(
        &include_bytes!("data.bin")[..],
        &b"\xEF\xBB\xBFThis file starts with BOM.\r\nLines are separated by \\r\\n.\r\n"[..],
    );
    assert_eq!(
        include_str!("data.bin"),
        "\u{FEFF}This file starts with BOM.\r\nLines are separated by \\r\\n.\r\n",
    );
}