Sign in
fuchsia
/
third_party
/
rust
/
eda6dc928323fcd0ac1b51cea1aa79ab17e8519d
/
.
/
tests
/
run-make
/
cpp-global-destructors
/
foo.rs
blob: f30a35e27c0bcc7f596fda1de1e8007e2798c109 [
file
] [
log
] [
blame
]
// Tests that linking to C++ code with global destructors works.
extern
"C"
{
fn
get
()
->
u32
;
}
fn
main
()
{
let
i
=
unsafe
{
get
()
};
assert_eq
!(
i
,
1234
);
}