rust/tests/pass/backtrace-global-alloc.rs

14 lines
242 B
Rust
Raw Normal View History

// 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());
}