diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-07-21 14:34:12 +0200 | 
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-07-22 14:28:48 +0200 | 
| commit | a27f3e3fd1e4d16160f8885b6b06665b5319f56c (patch) | |
| tree | b033935392cbadf6f85d2dbddf433a88e323aeeb /tests/codegen/cross-crate-inlining/leaf-inlining.rs | |
| parent | ed93c1783b404d728d4809973a0550eb33cd293f (diff) | |
| download | rust-a27f3e3fd1e4d16160f8885b6b06665b5319f56c.tar.gz rust-a27f3e3fd1e4d16160f8885b6b06665b5319f56c.zip | |
Rename `tests/codegen` into `tests/codegen-llvm`
Diffstat (limited to 'tests/codegen/cross-crate-inlining/leaf-inlining.rs')
| -rw-r--r-- | tests/codegen/cross-crate-inlining/leaf-inlining.rs | 20 | 
1 files changed, 0 insertions, 20 deletions
| diff --git a/tests/codegen/cross-crate-inlining/leaf-inlining.rs b/tests/codegen/cross-crate-inlining/leaf-inlining.rs deleted file mode 100644 index 37132312ca9..00000000000 --- a/tests/codegen/cross-crate-inlining/leaf-inlining.rs +++ /dev/null @@ -1,20 +0,0 @@ -//@ compile-flags: -Copt-level=3 -Zcross-crate-inline-threshold=yes -//@ aux-build:leaf.rs - -#![crate_type = "lib"] - -extern crate leaf; - -// Check that we inline a leaf cross-crate call -#[no_mangle] -pub fn leaf_outer() -> String { - // CHECK-NOT: call {{.*}}leaf_fn - leaf::leaf_fn() -} - -// Check that we do not inline a non-leaf cross-crate call -#[no_mangle] -pub fn stem_outer() -> String { - // CHECK: call {{.*}}stem_fn - leaf::stem_fn() -} | 
