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