]> git.lizzy.rs Git - rust.git/blob - src/test/run-make/issue-36710/foo.rs
Rollup merge of #78702 - wesleywiser:self_profile_cgu_sizes, r=Mark-Simulacrum
[rust.git] / src / test / run-make / issue-36710 / foo.rs
1 // Tests that linking to C++ code with global destructors works.
2
3 // For linking libstdc++ on MinGW
4 #![cfg_attr(all(windows, target_env = "gnu"), feature(static_nobundle))]
5
6 extern { fn get() -> u32; }
7
8 fn main() {
9     let i = unsafe { get() };
10     assert_eq!(i, 1234);
11 }