rust/tests/ui/codegen/llvm-pr32379.rs
2024-02-16 20:02:50 +00:00

15 lines
458 B
Rust

//@ 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);
}