From: Adhemerval Zanella Date: Tue, 17 Jan 2023 13:14:58 +0000 (-0300) Subject: string: Hook up the default implementation on test-memrchr X-Git-Tag: glibc-2.38~608 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=77a9e5c97eddec0db76b288c90c5ee2e4fe65ba5;p=thirdparty%2Fglibc.git string: Hook up the default implementation on test-memrchr Reviewed-by: Richard Henderson --- diff --git a/string/test-memrchr.c b/string/test-memrchr.c index a4eac3592ee..e4cba1878a2 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)