From 976267b5141ef9a72ba3cb9edf01ca3bc53ec81e Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Thu, 25 Apr 2024 11:44:32 +0900 Subject: [PATCH] Add needs-unwind to codegen test When compiled with -C panic=abort we'd generate an extra panic_cannot_unwind shim in the variant calling C-unwind. --- tests/codegen/maybeuninit-rvo.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/codegen/maybeuninit-rvo.rs b/tests/codegen/maybeuninit-rvo.rs index d21e878c818b..cc5da39a9cac 100644 --- a/tests/codegen/maybeuninit-rvo.rs +++ b/tests/codegen/maybeuninit-rvo.rs @@ -1,4 +1,5 @@ //@ compile-flags: -O +//@ needs-unwind //@ min-llvm-version: 18 #![feature(c_unwind)] #![crate_type = "lib"]