blob: 157d659bfd64bd68db805a02eb55abc3ab834b64 [file] [log] [blame]
//@ compile-flags: --crate-type rlib
//@ check-pass
//@ aux-build: cross_crate_eii_declaration.rs
// Tests whether calling EIIs works with the declaration in another crate.
#![feature(extern_item_impls)]
#![feature(decl_macro)]
#![feature(rustc_attrs)]
#![feature(eii_internals)]
extern crate cross_crate_eii_declaration;
#[unsafe(cross_crate_eii_declaration::foo)]
fn other(x: u64) -> u64 {
x
}
fn main() {
cross_crate_eii_declaration::bar(0);
}