rust/tests/pass/backtrace/backtrace-global-alloc.rs
2022-08-10 08:03:00 -04:00

13 lines
249 B
Rust

//@compile-flags: -Zmiri-disable-isolation
//@rustc-env: RUST_BACKTRACE=1
use std::alloc::System;
use std::backtrace::Backtrace;
#[global_allocator]
static GLOBAL_ALLOCATOR: System = System;
fn main() {
eprint!("{}", Backtrace::capture());
}