1 struct Bar(u16); // ZSTs are tested separately
3 static mut DROP_COUNT: usize = 0;
7 assert_eq!(self.0 as usize, unsafe { DROP_COUNT }); // tests whether we are called at a valid address
15 let b = [Bar(0), Bar(1), Bar(2), Bar(3)];
16 assert_eq!(unsafe { DROP_COUNT }, 0);
18 assert_eq!(unsafe { DROP_COUNT }, 4);
23 assert_eq!(unsafe { DROP_COUNT }, 4);