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 00:30:20 -06:00
// aux-build:cci_const.rs
#![allow(non_upper_case_globals)]
extern crate cci_const;
2013-03-07 00:30:20 -06:00
use cci_const::bar;
static foo: extern "C" fn() = bar;
2013-03-07 00:30:20 -06:00
2013-03-27 11:58:28 -05:00
pub fn main() {
assert!(foo == bar);
2013-03-07 00:30:20 -06:00
}