diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:18:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:18:58 +0000 |
commit | a4b7ed7a42c716ab9f05e351f003d589124fd55d (patch) | |
tree | b620cd3f223850b28716e474e80c58059dca5dd4 /src/test/mir-opt/inline/exponential_runtime.rs | |
parent | Adding upstream version 1.67.1+dfsg1. (diff) | |
download | rustc-a4b7ed7a42c716ab9f05e351f003d589124fd55d.tar.xz rustc-a4b7ed7a42c716ab9f05e351f003d589124fd55d.zip |
Adding upstream version 1.68.2+dfsg1.upstream/1.68.2+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/mir-opt/inline/exponential_runtime.rs')
-rw-r--r-- | src/test/mir-opt/inline/exponential_runtime.rs | 87 |
1 files changed, 0 insertions, 87 deletions
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<T: A> B for T { - #[inline] - fn call() { - <T as A>::call(); - <T as A>::call(); - <T as A>::call(); - } -} - -trait C { - fn call(); -} -impl<T: B> C for T { - #[inline] - fn call() { - <T as B>::call(); - <T as B>::call(); - <T as B>::call(); - } -} - -trait D { - fn call(); -} -impl<T: C> D for T { - #[inline] - fn call() { - <T as C>::call(); - <T as C>::call(); - <T as C>::call(); - } -} - -trait E { - fn call(); -} -impl<T: D> E for T { - #[inline] - fn call() { - <T as D>::call(); - <T as D>::call(); - <T as D>::call(); - } -} - -trait F { - fn call(); -} -impl<T: E> F for T { - #[inline] - fn call() { - <T as E>::call(); - <T as E>::call(); - <T as E>::call(); - } -} - -trait G { - fn call(); -} -impl<T: F> G for T { - #[inline] - fn call() { - <T as F>::call(); - <T as F>::call(); - <T as F>::call(); - } -} - -impl A for () { - #[inline(never)] - fn call() {} -} - -// EMIT_MIR exponential_runtime.main.Inline.diff -fn main() { - <() as G>::call(); -} |