rust/tests/pass/backtrace-global-alloc.rs
2022-06-01 17:32:01 -07:00

14 lines
242 B
Rust

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