binutils-gdb/ld/testsuite/ld-plugin/pr24406-1.c
H.J. Lu 4a41f3face ld-plugin/pr24406-1.c: Correct buffer size to read
* testsuite/ld-plugin/pr24406-1.c (main): Correct buffer size
	to read.
2019-09-23 08:51:36 -07:00

18 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;
}