]> git.lizzy.rs Git - rust.git/blob - tests/ui/panics/runtime-switch.rs
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / ui / panics / runtime-switch.rs
1 // Test for std::panic::set_backtrace_style.
2
3 // compile-flags: -O
4 // compile-flags:-Cstrip=none
5 // run-fail
6 // check-run-results
7 // exec-env:RUST_BACKTRACE=0
8
9 // ignore-msvc see #62897 and `backtrace-debuginfo.rs` test
10 // ignore-android FIXME #17520
11 // ignore-openbsd no support for libbacktrace without filename
12 // ignore-wasm no panic or subprocess support
13 // ignore-emscripten no panic or subprocess support
14 // ignore-sgx no subprocess support
15 // ignore-fuchsia Backtrace not symbolized
16
17 // NOTE(eddyb) output differs between symbol mangling schemes
18 // revisions: legacy v0
19 // [legacy] compile-flags: -Zunstable-options -Csymbol-mangling-version=legacy
20 //     [v0] compile-flags: -Csymbol-mangling-version=v0
21
22 #![feature(panic_backtrace_config)]
23
24 fn main() {
25     std::panic::set_backtrace_style(std::panic::BacktraceStyle::Short);
26     panic!()
27 }