blob: 3544160f094e56be68554ebdb09e7c6e66017dbb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// run-pass
#![allow(dead_code)]
#![warn(clashing_extern_declarations)]
// pretty-expanded FIXME #23616
extern "C" {
#[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() {}
|