1 2 3 4 5 6 7 8 9 10
// Tests that linking to C++ code with global destructors works. extern "C" { fn get() -> u32; } fn main() { let i = unsafe { get() }; assert_eq!(i, 1234); }