From a4b7ed7a42c716ab9f05e351f003d589124fd55d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:18:58 +0200 Subject: Adding upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- src/test/mir-opt/inline/exponential_runtime.rs | 87 -------------------------- 1 file changed, 87 deletions(-) delete mode 100644 src/test/mir-opt/inline/exponential_runtime.rs (limited to 'src/test/mir-opt/inline/exponential_runtime.rs') diff --git a/src/test/mir-opt/inline/exponential_runtime.rs b/src/test/mir-opt/inline/exponential_runtime.rs deleted file mode 100644 index d9219d76a..000000000 --- a/src/test/mir-opt/inline/exponential_runtime.rs +++ /dev/null @@ -1,87 +0,0 @@ -// Checks that code with exponential runtime does not have exponential behavior in inlining. - -trait A { - fn call(); -} - -trait B { - fn call(); -} -impl B for T { - #[inline] - fn call() { - ::call(); - ::call(); - ::call(); - } -} - -trait C { - fn call(); -} -impl C for T { - #[inline] - fn call() { - ::call(); - ::call(); - ::call(); - } -} - -trait D { - fn call(); -} -impl D for T { - #[inline] - fn call() { - ::call(); - ::call(); - ::call(); - } -} - -trait E { - fn call(); -} -impl E for T { - #[inline] - fn call() { - ::call(); - ::call(); - ::call(); - } -} - -trait F { - fn call(); -} -impl F for T { - #[inline] - fn call() { - ::call(); - ::call(); - ::call(); - } -} - -trait G { - fn call(); -} -impl G for T { - #[inline] - fn call() { - ::call(); - ::call(); - ::call(); - } -} - -impl A for () { - #[inline(never)] - fn call() {} -} - -// EMIT_MIR exponential_runtime.main.Inline.diff -fn main() { - <() as G>::call(); -} -- cgit v1.2.3