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 --- tests/ui/mir/issue-76375.rs | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tests/ui/mir/issue-76375.rs (limited to 'tests/ui/mir/issue-76375.rs') diff --git a/tests/ui/mir/issue-76375.rs b/tests/ui/mir/issue-76375.rs new file mode 100644 index 000000000..e635caca9 --- /dev/null +++ b/tests/ui/mir/issue-76375.rs @@ -0,0 +1,27 @@ +// Regression test for issue #76375. +// +// edition:2018 +// build-pass +// compile-flags: -Z mir-opt-level=3 +// aux-build:issue_76375_aux.rs + +#![crate_type = "lib"] + +extern crate issue_76375_aux; + +pub async fn g() { + issue_76375_aux::copy_prop(true); + h().await; +} + +pub async fn u() { + let b = [0u8; 32]; + let mut i = 0; + while i != 10 { + issue_76375_aux::dest_prop(&b); + h().await; + i += 1; + } +} + +pub async fn h() {} -- cgit v1.2.3