rust/tests/pass/backtrace/backtrace-global-alloc.rs
2022-07-08 16:08:32 +00: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());
}