1 // normalize-stderr-test ".*/(rust|checkout)/library/" -> "RUSTLIB/"
2 // normalize-stderr-test "RUSTLIB/(.*):\d+:\d+ "-> "RUSTLIB/$1:LL:COL "
3 // normalize-stderr-test "::<.*>" -> ""
4 // compile-flags: -Zmiri-disable-isolation
8 use std::backtrace::Backtrace;
10 #[inline(never)] fn func_a() -> Backtrace { func_b::<u8>() }
11 #[inline(never)] fn func_b<T>() -> Backtrace { func_c() }
13 macro_rules! invoke_func_d {
17 #[inline(never)] fn func_c() -> Backtrace { invoke_func_d!() }
18 #[inline(never)] fn func_d() -> Backtrace { Backtrace::capture() }
21 eprint!("{}", func_a());