about summary refs log tree commit diff
path: root/src/tools/miri/tests/pass/backtrace/backtrace-global-alloc.rs
blob: 6660e5bb57c09d3db698df200e814e449a31900b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@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());
}