Skip to content

Commit f8ae3cd

Browse files
committed
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.
1 parent ce888a5 commit f8ae3cd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/test/run-pass/extern-pub.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
use std::libc;
2-
31
extern {
4-
pub unsafe fn free(p: *libc::c_void);
2+
pub unsafe fn free(p: *u8);
53
}
64

75
pub fn main() {

0 commit comments

Comments
 (0)