We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c0b292 commit dee0393Copy full SHA for dee0393
tests/codegen-llvm/cross-crate-inlining/auxiliary/leaf.rs
@@ -4,8 +4,8 @@
4
5
// This function *looks* like it contains a call, but that call will be optimized out by MIR
6
// optimizations.
7
-pub fn leaf_fn() -> bool {
8
- Some(0).is_some()
+pub fn leaf_fn() -> String {
+ String::new()
9
}
10
11
// This function contains a call, even after MIR optimizations. It is only eligible for
tests/codegen-llvm/cross-crate-inlining/leaf-inlining.rs
@@ -7,7 +7,7 @@ extern crate leaf;
// Check that we inline a leaf cross-crate call
#[no_mangle]
-pub fn leaf_outer() -> bool {
+pub fn leaf_outer() -> String {
// CHECK-NOT: call {{.*}}leaf_fn
12
leaf::leaf_fn()
13
0 commit comments