about summary refs log tree commit diff
path: root/src/tools/miri/tests/pass/thread_local-panic.rs
blob: 549acd23987e93a4cfbfa51dc8678aa98fcac226 (plain)
1
2
3
4
5
6
7
8
thread_local! {
    static LOCAL: u64 = panic!();

}

fn main() {
    let _ = std::panic::catch_unwind(|| LOCAL.with(|_| {}));
}