summaryrefslogtreecommitdiffstats
path: root/src/test/ui/codegen/llvm-pr32379.rs
blob: 8a1f03241b110b547ae05ffcb1ec031f5235f96f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// run-pass
// aux-build:llvm_pr32379.rs

// LLVM PR #32379 (https://bugs.llvm.org/show_bug.cgi?id=32379), which
// applies to upstream LLVM 3.9.1, is known to cause rustc itself to be
// miscompiled on ARM (Rust issue #40593). Because cross builds don't test
// our *compiler* on ARM, have a test for the miscompilation directly.

extern crate llvm_pr32379;

pub fn main() {
    let val = llvm_pr32379::pr32379(2, false, false);
    assert_eq!(val, 2);
}