diff options
Diffstat (limited to 'ld/testsuite/ld-plugin/pr24406-1.c')
-rw-r--r-- | ld/testsuite/ld-plugin/pr24406-1.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ld/testsuite/ld-plugin/pr24406-1.c b/ld/testsuite/ld-plugin/pr24406-1.c new file mode 100644 index 0000000..43995bd --- /dev/null +++ b/ld/testsuite/ld-plugin/pr24406-1.c @@ -0,0 +1,17 @@ +#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", 5); + return i == 0; +} |