llvm-scratch 0.1.15

Free Standing library in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[cfg(test)]
mod target_triple_tests {
    use crate::core::target_triple as tt;

    #[test]
    fn test_target_triple_display() {
        let tt = tt::TargetTriple {
            architecture: tt::Arch::X86_64,
            sub: None,
            vendor: tt::Vendor::PC,
            sys: tt::Sys::LINUX,
            abi: tt::ABI::GNU,
        };

        assert_eq!("x86_64-pc-linux-gnu", format!("{}", tt).as_str());
    }
}