summaryrefslogtreecommitdiffstats
path: root/src/test/run-make/coverage/inline-dead.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-make/coverage/inline-dead.rs')
-rw-r--r--src/test/run-make/coverage/inline-dead.rs27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/test/run-make/coverage/inline-dead.rs b/src/test/run-make/coverage/inline-dead.rs
deleted file mode 100644
index 854fa0629..000000000
--- a/src/test/run-make/coverage/inline-dead.rs
+++ /dev/null
@@ -1,27 +0,0 @@
-// Regression test for issue #98833.
-// compile-flags: -Zinline-mir -Cdebug-assertions=off
-
-fn main() {
- println!("{}", live::<false>());
-
- let f = |x: bool| {
- debug_assert!(
- x
- );
- };
- f(false);
-}
-
-#[inline]
-fn live<const B: bool>() -> u32 {
- if B {
- dead()
- } else {
- 0
- }
-}
-
-#[inline]
-fn dead() -> u32 {
- 42
-}