2018-08-30 12:18:55 +00:00
|
|
|
//@ run-pass
|
2013-03-07 06:30:20 +00:00
|
|
|
//@ aux-build:cci_const.rs
|
2023-12-10 14:51:06 +00:00
|
|
|
|
2018-08-31 13:02:01 +00:00
|
|
|
#![allow(non_upper_case_globals)]
|
2023-12-10 14:51:06 +00:00
|
|
|
#![allow(unpredictable_function_pointer_comparisons)]
|
2015-03-22 20:13:15 +00:00
|
|
|
|
2014-02-14 18:10:06 +00:00
|
|
|
extern crate cci_const;
|
2013-03-07 06:30:20 +00:00
|
|
|
use cci_const::bar;
|
2013-08-21 13:27:48 +00:00
|
|
|
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() {
|
2014-02-28 09:23:06 +00:00
|
|
|
assert!(foo == bar);
|
2013-03-07 06:30:20 +00:00
|
|
|
}
|