mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
15 lines
456 B
Rust
15 lines
456 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);
|
|
}
|