Sign in
rust
/
rust
/
HEAD
/
.
/
src
/
tools
/
miri
/
tests
/
pass
/
weak-linkage-missing.rs
blob: c02226963097319ea48ba919a7efb32616d67cb6 [
file
]
#![
feature
(
linkage
)]
unsafe
extern
"C"
{
#[
linkage
=
"extern_weak"
]
static
test_symbol_that_does_not_exist
:
Option
<
unsafe
extern
"C"
fn
()>;
}
fn
main
()
{
unsafe
{
assert
!(
test_symbol_that_does_not_exist
.
is_none
())
};
}