diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-01-20 17:50:41 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-02-06 16:19:35 -0300 |
commit | c863e33f784381c7341dc01e21c78d465e985bd6 (patch) | |
tree | 43a34b7188aa90350c09f7a696f64edf2c7e47b7 | |
parent | e7a0c81e61bfe0d60df5611bd3ce33b8da8c5836 (diff) | |
download | glibc-c863e33f784381c7341dc01e21c78d465e985bd6.zip glibc-c863e33f784381c7341dc01e21c78d465e985bd6.tar.gz glibc-c863e33f784381c7341dc01e21c78d465e985bd6.tar.bz2 |
string: Hook up the default implementation on test-strncmp
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
-rw-r--r-- | string/test-strncmp.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/string/test-strncmp.c b/string/test-strncmp.c index fb4c642..35dc496 100644 --- a/string/test-strncmp.c +++ b/string/test-strncmp.c @@ -90,6 +90,22 @@ typedef int (*proto_t) (const CHAR *, const CHAR *, size_t); IMPL (STRNCMP, 1) +/* Also check the default implementation. */ +#undef STRNCMP +#undef libc_hidden_builtin_def +#define libc_hidden_builtin_def(a) +#undef attribute_hidden +#define attribute_hidden +#ifndef WIDE +# define STRNCMP __strncmp_default +# include "string/strncmp.c" +# define STRNCMP_DEFAULT STRNCMP +#else +# define WCSNCMP __wcsncmp_default +# include "wcsmbs/wcsncmp.c" +# define STRNCMP_DEFAULT WCSNCMP +#endif +IMPL (STRNCMP_DEFAULT, 1) static int check_result (impl_t *impl, const CHAR *s1, const CHAR *s2, size_t n, |