]> git.lizzy.rs Git - rust.git/blob - src/test/run-make/issue-36710/foo.rs
Sync rust-lang/portable-simd@03f6fbb21e6050da2a05b3ce8f480c020b384916
[rust.git] / src / test / run-make / issue-36710 / foo.rs
1 // Tests that linking to C++ code with global destructors works.
2
3 extern "C" {
4     fn get() -> u32;
5 }
6
7 fn main() {
8     let i = unsafe { get() };
9     assert_eq!(i, 1234);
10 }