rust/tests/ui/cross-crate/const-cross-crate-extern.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
196 B
Rust
Raw Normal View History

// run-pass
2013-03-07 06:30:20 +00:00
// aux-build:cci_const.rs
#![allow(non_upper_case_globals)]
extern crate cci_const;
2013-03-07 06:30:20 +00:00
use cci_const::bar;
static foo: extern "C" fn() = bar;
2013-03-07 06:30:20 +00:00
2013-03-27 16:58:28 +00:00
pub fn main() {
assert!(foo == bar);
2013-03-07 06:30:20 +00:00
}