Sign in
rust
/
rust-lang
/
rust
/
refs/heads/beta
/
.
/
tests
/
ui
/
cross-crate
/
const-cross-crate-extern.rs
blob: 0ec8753c30f2f2c988dd562be183992c08a1cf6a [
file
] [
log
] [
blame
]
//@ run-pass
//@ aux-build:cci_const.rs
#![
allow
(
non_upper_case_globals
)]
#![
allow
(
unpredictable_function_pointer_comparisons
)]
extern
crate cci_const
;
use
cci_const
::
bar
;
static
foo
:
extern
"C"
fn
()
=
bar
;
pub
fn
main
()
{
assert
!(
foo
==
bar
);
}