Skip to content

Commit 5f0b677

Browse files
committed
codegen: add needs-unwind to tests that require it
1 parent 292bc54 commit 5f0b677

9 files changed

+9
-0
lines changed

tests/codegen/drop.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// ignore-wasm32-bare compiled with panic=abort by default
2+
// needs-unwind - this test verifies the amount of drop calls when unwinding is used
23
// compile-flags: -C no-prepopulate-passes
34

45
#![crate_type = "lib"]

tests/codegen/personality_lifetimes.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// ignore-msvc
22
// ignore-wasm32-bare compiled with panic=abort by default
3+
// needs-unwind
34

45
// compile-flags: -O -C no-prepopulate-passes
56

tests/codegen/unwind-abis/c-unwind-abi.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// compile-flags: -C opt-level=0
2+
// needs-unwind
23

34
// Test that `nounwind` attributes are correctly applied to exported `C` and `C-unwind` extern
45
// functions. `C-unwind` functions MUST NOT have this attribute. We disable optimizations above

tests/codegen/unwind-abis/cdecl-unwind-abi.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// compile-flags: -C opt-level=0
2+
// needs-unwind
23

34
// Test that `nounwind` attributes are correctly applied to exported `cdecl` and
45
// `cdecl-unwind` extern functions. `cdecl-unwind` functions MUST NOT have this attribute. We

tests/codegen/unwind-abis/nounwind-on-stable-panic-unwind.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// compile-flags: -C opt-level=0
22
// ignore-wasm32-bare compiled with panic=abort by default
3+
// needs-unwind
34

45
#![crate_type = "lib"]
56

tests/codegen/unwind-abis/system-unwind-abi.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// compile-flags: -C opt-level=0
2+
// needs-unwind
23

34
// Test that `nounwind` attributes are correctly applied to exported `system` and `system-unwind`
45
// extern functions. `system-unwind` functions MUST NOT have this attribute. We disable

tests/codegen/unwind-extern-exports.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// compile-flags: -C opt-level=0
22
// ignore-wasm32-bare compiled with panic=abort by default
3+
// needs-unwind
34

45
#![crate_type = "lib"]
56
#![feature(c_unwind)]

tests/codegen/unwind-extern-imports.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// compile-flags: -C no-prepopulate-passes
22
// ignore-wasm32-bare compiled with panic=abort by default
3+
// needs-unwind
34

45
#![crate_type = "lib"]
56
#![feature(c_unwind)]

tests/codegen/vec-shrink-panik.rs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// [new]min-llvm-version: 17
66
// compile-flags: -O
77
// ignore-debug: the debug assertions get in the way
8+
// needs-unwind
89
#![crate_type = "lib"]
910
#![feature(shrink_to)]
1011

0 commit comments

Comments
 (0)