summaryrefslogtreecommitdiffstats
path: root/src/test/ui/extern/auxiliary/fat_drop.rs
blob: 768d29876b971eb36713fe076abe5ba23639fb3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
pub static mut DROPPED: bool = false;

pub struct S {
    _unsized: [u8]
}

impl Drop for S {
    fn drop(&mut self) {
        unsafe {
            DROPPED = true;
        }
    }
}