blob: c25684af509024dc8f0e3c5a21dd4f68d1f2ae08 [file] [log] [blame]
//@error-in-other-file: aborted execution
// Backtraces vary wildly between platforms, we have to normalize away almost the entire thing.
// Full backtraces avoid annoying empty line differences.
//@compile-flags: -Zmiri-backtrace=full
//@normalize-stderr-test: "'main'|'<unnamed>'" -> "$$NAME"
//@normalize-stderr-test: ".*(note|-->|\|).*\n" -> ""
//@normalize-stderr-test: "\n *\d+:.*\n *at .*" -> ""
pub struct NoisyDrop {}
impl Drop for NoisyDrop {
fn drop(&mut self) {
panic!("ow");
}
}
thread_local! {
pub static NOISY: NoisyDrop = const { NoisyDrop {} };
}
fn main() {
NOISY.with(|_| ());
}