We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c73d4a8 commit b2960b9Copy full SHA for b2960b9
2 files changed
tests/unit/out/unsafe/stdio.rs
@@ -175,6 +175,7 @@ pub unsafe fn test_fileno_3() {
175
Box::from_raw(fp);
176
0
177
};
178
+ assert!(((((libc::unlink(file as *const i8)) == (0)) as i32) != 0));
179
}
180
pub fn main() {
181
unsafe {
tests/unit/stdio.c
@@ -1,6 +1,7 @@
1
// no-compile: refcount
2
#include <assert.h>
3
#include <stdio.h>
4
+#include <unistd.h>
5
6
static void test_fputc(void) {
7
fputc('H', stdout);
0 commit comments