blob: 061f07c32434016b3686361998f8331171904e19 [file] [log] [blame]
// Tests that linking to C++ code with global destructors works.
// For linking libstdc++ on MinGW
#![cfg_attr(all(windows, target_env = "gnu"), feature(static_nobundle))]
extern { fn get() -> u32; }
fn main() {
let i = unsafe { get() };
assert_eq!(i, 1234);
}