rust/tests/ui/panic-runtime/unwind-tables-target-required.rs
Vadim Petrochenkov 4916d44b59 Fix up tests on wasm and msvc, and rebase conflicts
Can be fixed properly later by adding a new flag for non-exhaustive line annotation checking
2025-04-03 11:08:55 +03:00

13 lines
338 B
Rust

// Tests that the compiler errors if the user tries to turn off unwind tables
// when they are required.
//
//@ only-x86_64-pc-windows-msvc
//@ compile-flags: -C force-unwind-tables=no
//
//@ dont-check-compiler-stderr
pub fn main() {
}
//~? ERROR target requires unwind tables, they cannot be disabled with `-C force-unwind-tables=no`