mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
14 lines
227 B
Rust
14 lines
227 B
Rust
//@ compile-flags: -O
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
// CHECK-LABEL: @issue_34947
|
|
#[no_mangle]
|
|
pub fn issue_34947(x: i32) -> i32 {
|
|
// CHECK: mul
|
|
// CHECK-NEXT: mul
|
|
// CHECK-NEXT: mul
|
|
// CHECK-NEXT: ret
|
|
x.pow(5)
|
|
}
|