mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 14:31:55 +00:00
20 lines
293 B
Rust
20 lines
293 B
Rust
#![crate_type = "lib"]
|
|
|
|
//@ compile-flags: -Cno-prepopulate-passes
|
|
|
|
// CHECK-LABEL: fna
|
|
#[no_mangle]
|
|
pub fn fna(a: i16) -> i32 {
|
|
a as i32
|
|
// CHECK-NOT: assume
|
|
// CHECK: sext
|
|
}
|
|
|
|
// CHECK-LABEL: fnb
|
|
#[no_mangle]
|
|
pub fn fnb(a: u16) -> u32 {
|
|
a as u32
|
|
// CHECK-NOT: assume
|
|
// CHECK: zext
|
|
}
|