]> git.lizzy.rs Git - rust.git/blob - tests/run-make/issue-36710/foo.rs
Rollup merge of #107284 - notriddle:notriddle/plus, r=jsha
[rust.git] / tests / 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 }