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.
This commit is contained in:
Nikita Popov 2024-04-25 11:44:32 +09:00
parent 137775dd63
commit 976267b514

View File

@ -1,4 +1,5 @@
//@ compile-flags: -O
//@ needs-unwind
//@ min-llvm-version: 18
#![feature(c_unwind)]
#![crate_type = "lib"]