mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
14 lines
263 B
Rust
14 lines
263 B
Rust
//@ compile-flags: -O
|
|
//@ aux-build:never.rs
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
extern crate never;
|
|
|
|
// Check that we do not inline a cross-crate call, even though it is a leaf
|
|
#[no_mangle]
|
|
pub fn outer() -> String {
|
|
// CHECK: call {{.*}}leaf_fn
|
|
never::leaf_fn()
|
|
}
|