3 // compile-flags: --crate-type lib --emit link
4 #![allow(clashing_extern_declarations)]
6 //~^ WARN the feature `raw_dylib` is incomplete
7 #[link(name = "foo", kind = "raw-dylib")]
13 #[link(name = "foo", kind = "raw-dylib")]
16 //~^ ERROR multiple declarations of external function `f` from library `foo.dll` have different calling conventions