os-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
198 B
Rust
Raw Normal View History

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