blob: 7a3ff84b2cb13fb72b96284bab1d42b651e0b59b [file] [log] [blame]
use std::alloc::{alloc, dealloc, Layout};
//@error-in-other-file: has been freed
fn main() {
unsafe {
let x = alloc(Layout::from_size_align_unchecked(1, 1));
dealloc(x, Layout::from_size_align_unchecked(1, 1));
dealloc(x, Layout::from_size_align_unchecked(1, 1));
}
}