mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
4a41f3face
* testsuite/ld-plugin/pr24406-1.c (main): Correct buffer size to read.
18 lines
222 B
C
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;
|
|
}
|