aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-01-17 10:14:58 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-02-06 16:19:35 -0300
commit77a9e5c97eddec0db76b288c90c5ee2e4fe65ba5 (patch)
tree31e48e9752c5a337d9f6d5e5bf80eb436ea65838
parent0dfa8617b5c3c2d2ef9e3366bec98b33828d8eae (diff)
downloadglibc-77a9e5c97eddec0db76b288c90c5ee2e4fe65ba5.zip
glibc-77a9e5c97eddec0db76b288c90c5ee2e4fe65ba5.tar.gz
glibc-77a9e5c97eddec0db76b288c90c5ee2e4fe65ba5.tar.bz2
string: Hook up the default implementation on test-memrchr
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
-rw-r--r--string/test-memrchr.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/string/test-memrchr.c b/string/test-memrchr.c
index a4eac35..e4cba18 100644
--- a/string/test-memrchr.c
+++ b/string/test-memrchr.c
@@ -24,6 +24,13 @@ typedef char *(*proto_t) (const char *, int, size_t);
IMPL (memrchr, 1)
+/* Also check the generic implementation. */
+#undef weak_alias
+#define weak_alias(a, b)
+#define MEMRCHR __memrchr_default
+#include "string/memrchr.c"
+IMPL (__memrchr_default, 1)
+
/* Naive implementation to verify results. */
char *
simple_memrchr (const char *s, int c, size_t n)