about summary refs log tree commit diff
path: root/tests/ui/include-macros/normalization.rs
blob: d503d137e55353bbfbf9711445534814772f6621 (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",
    );
}