]> git.proxmox.com Git - rustc.git/blame - src/test/run-make/issue-36710/foo.rs
Update unsuspicious file list
[rustc.git] / src / test / run-make / issue-36710 / foo.rs
CommitLineData
94b46f34 1// Tests that linking to C++ code with global destructors works.
83c7162d 2
5869c6ff
XL
3extern "C" {
4 fn get() -> u32;
5}
041b39d2 6
7453a54e 7fn main() {
94b46f34
XL
8 let i = unsafe { get() };
9 assert_eq!(i, 1234);
223e47cc 10}