public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] string: Hook up the default implementation on test-memrchr
@ 2023-02-06 20:15 Adhemerval Zanella
  0 siblings, 0 replies; only message in thread
From: Adhemerval Zanella @ 2023-02-06 20:15 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=77a9e5c97eddec0db76b288c90c5ee2e4fe65ba5

commit 77a9e5c97eddec0db76b288c90c5ee2e4fe65ba5
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Jan 17 10:14:58 2023 -0300

    string: Hook up the default implementation on test-memrchr
    
    Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

Diff:
---
 string/test-memrchr.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/string/test-memrchr.c b/string/test-memrchr.c
index a4eac3592e..e4cba1878a 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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-06 20:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-06 20:15 [glibc] string: Hook up the default implementation on test-memrchr Adhemerval Zanella

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).