Fix test failure on windows
This patch ensures that the multiple extern definitions of `free` in the run-pass tests have the same declaration, working around #7352.
This commit is contained in:
parent
ce888a5055
commit
f8ae3cdcaa
1 changed files with 1 additions and 3 deletions
|
|
@ -1,7 +1,5 @@
|
|||
use std::libc;
|
||||
|
||||
extern {
|
||||
pub unsafe fn free(p: *libc::c_void);
|
||||
pub unsafe fn free(p: *u8);
|
||||
}
|
||||
|
||||
pub fn main() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue