14 lines
350 B
Rust
14 lines
350 B
Rust
// run-pass
|
|
#![allow(dead_code)]
|
|
#![warn(clashing_extern_declarations)]
|
|
// pretty-expanded FIXME #23616
|
|
|
|
extern {
|
|
#[link_name = "malloc"]
|
|
fn malloc1(len: i32) -> *const u8;
|
|
#[link_name = "malloc"]
|
|
//~^ WARN `malloc2` redeclares `malloc` with a different signature
|
|
fn malloc2(len: i32, foo: i32) -> *const u8;
|
|
}
|
|
|
|
pub fn main () {}
|