Projet_SETI_RISC-V/riscv-gnu-toolchain/binutils/ld/testsuite/ld-plugin/pr24406-1.c
2023-03-06 14:48:14 +01:00

17 lines
222 B
C

#include <stdio.h>
#include <unistd.h>
ssize_t
__wrap_read (int fd, void *buffer, size_t count)
{
puts ("PASS");
return fd + count + sizeof (buffer);
}
int
main ()
{
int i = read (1, "abc", 4);
return i == 0;
}