summary refs log tree commit diff
path: root/src/test/run-make-fulldeps/issue-36710/foo.rs
blob: a9d3effbd18060cb959807fbb9cacf1cc211c2d8 (plain)
1
2
3
4
5
6
7
8
// Tests that linking to C++ code with global destructors works.

extern { fn get() -> u32; }

fn main() {
    let i = unsafe { get() };
    assert_eq!(i, 1234);
}