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/link-dead-code.rs | |
| parent | ed93c1783b404d728d4809973a0550eb33cd293f (diff) | |
| download | rust-a27f3e3fd1e4d16160f8885b6b06665b5319f56c.tar.gz rust-a27f3e3fd1e4d16160f8885b6b06665b5319f56c.zip | |
Rename `tests/codegen` into `tests/codegen-llvm`
Diffstat (limited to 'tests/codegen/link-dead-code.rs')
| -rw-r--r-- | tests/codegen/link-dead-code.rs | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/tests/codegen/link-dead-code.rs b/tests/codegen/link-dead-code.rs deleted file mode 100644 index 93e1d84d9c7..00000000000 --- a/tests/codegen/link-dead-code.rs +++ /dev/null @@ -1,28 +0,0 @@ -//@ compile-flags:-Clink-dead-code - -#![crate_type = "rlib"] - -// This test makes sure that, when -Clink-dead-code is specified, we generate -// code for functions that would otherwise be skipped. - -// CHECK-LABEL: ; link_dead_code::const_fn -// CHECK-NEXT: ; Function Attrs: -// CHECK-NEXT: define hidden -const fn const_fn() -> i32 { - 1 -} - -// CHECK-LABEL: ; link_dead_code::inline_fn -// CHECK-NEXT: ; Function Attrs: -// CHECK-NEXT: define hidden -#[inline] -fn inline_fn() -> i32 { - 2 -} - -// CHECK-LABEL: ; link_dead_code::private_fn -// CHECK-NEXT: ; Function Attrs: -// CHECK-NEXT: define hidden -fn private_fn() -> i32 { - 3 -} |
