codegen: add needs-unwind to tests that require it
This commit is contained in:
parent
292bc548c8
commit
5f0b677b86
@ -1,4 +1,5 @@
|
|||||||
// ignore-wasm32-bare compiled with panic=abort by default
|
// ignore-wasm32-bare compiled with panic=abort by default
|
||||||
|
// needs-unwind - this test verifies the amount of drop calls when unwinding is used
|
||||||
// compile-flags: -C no-prepopulate-passes
|
// compile-flags: -C no-prepopulate-passes
|
||||||
|
|
||||||
#![crate_type = "lib"]
|
#![crate_type = "lib"]
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
// ignore-msvc
|
// ignore-msvc
|
||||||
// ignore-wasm32-bare compiled with panic=abort by default
|
// ignore-wasm32-bare compiled with panic=abort by default
|
||||||
|
// needs-unwind
|
||||||
|
|
||||||
// compile-flags: -O -C no-prepopulate-passes
|
// compile-flags: -O -C no-prepopulate-passes
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
// compile-flags: -C opt-level=0
|
// compile-flags: -C opt-level=0
|
||||||
|
// needs-unwind
|
||||||
|
|
||||||
// Test that `nounwind` attributes are correctly applied to exported `C` and `C-unwind` extern
|
// Test that `nounwind` attributes are correctly applied to exported `C` and `C-unwind` extern
|
||||||
// functions. `C-unwind` functions MUST NOT have this attribute. We disable optimizations above
|
// functions. `C-unwind` functions MUST NOT have this attribute. We disable optimizations above
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
// compile-flags: -C opt-level=0
|
// compile-flags: -C opt-level=0
|
||||||
|
// needs-unwind
|
||||||
|
|
||||||
// Test that `nounwind` attributes are correctly applied to exported `cdecl` and
|
// Test that `nounwind` attributes are correctly applied to exported `cdecl` and
|
||||||
// `cdecl-unwind` extern functions. `cdecl-unwind` functions MUST NOT have this attribute. We
|
// `cdecl-unwind` extern functions. `cdecl-unwind` functions MUST NOT have this attribute. We
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
// compile-flags: -C opt-level=0
|
// compile-flags: -C opt-level=0
|
||||||
// ignore-wasm32-bare compiled with panic=abort by default
|
// ignore-wasm32-bare compiled with panic=abort by default
|
||||||
|
// needs-unwind
|
||||||
|
|
||||||
#![crate_type = "lib"]
|
#![crate_type = "lib"]
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
// compile-flags: -C opt-level=0
|
// compile-flags: -C opt-level=0
|
||||||
|
// needs-unwind
|
||||||
|
|
||||||
// Test that `nounwind` attributes are correctly applied to exported `system` and `system-unwind`
|
// Test that `nounwind` attributes are correctly applied to exported `system` and `system-unwind`
|
||||||
// extern functions. `system-unwind` functions MUST NOT have this attribute. We disable
|
// extern functions. `system-unwind` functions MUST NOT have this attribute. We disable
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
// compile-flags: -C opt-level=0
|
// compile-flags: -C opt-level=0
|
||||||
// ignore-wasm32-bare compiled with panic=abort by default
|
// ignore-wasm32-bare compiled with panic=abort by default
|
||||||
|
// needs-unwind
|
||||||
|
|
||||||
#![crate_type = "lib"]
|
#![crate_type = "lib"]
|
||||||
#![feature(c_unwind)]
|
#![feature(c_unwind)]
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
// compile-flags: -C no-prepopulate-passes
|
// compile-flags: -C no-prepopulate-passes
|
||||||
// ignore-wasm32-bare compiled with panic=abort by default
|
// ignore-wasm32-bare compiled with panic=abort by default
|
||||||
|
// needs-unwind
|
||||||
|
|
||||||
#![crate_type = "lib"]
|
#![crate_type = "lib"]
|
||||||
#![feature(c_unwind)]
|
#![feature(c_unwind)]
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
// [new]min-llvm-version: 17
|
// [new]min-llvm-version: 17
|
||||||
// compile-flags: -O
|
// compile-flags: -O
|
||||||
// ignore-debug: the debug assertions get in the way
|
// ignore-debug: the debug assertions get in the way
|
||||||
|
// needs-unwind
|
||||||
#![crate_type = "lib"]
|
#![crate_type = "lib"]
|
||||||
#![feature(shrink_to)]
|
#![feature(shrink_to)]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user