codegen: add needs-unwind to tests that require it

This commit is contained in:
Pietro Albini 2023-05-23 15:20:57 +02:00
parent 292bc548c8
commit 5f0b677b86
No known key found for this signature in database
GPG Key ID: CD76B35F7734769E
9 changed files with 9 additions and 0 deletions

View File

@ -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"]

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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"]

View File

@ -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

View File

@ -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)]

View File

@ -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)]

View File

@ -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)]