root@focal-glibc:~# gcc -static -o test_wcsncmp test_wcsncmp.c
In file included from test_wcsncmp.c:2:
test_wcsncmp.c: In function ‘main’:
test_wcsncmp.c:6:12: warning: implicit declaration of function ‘__wcsncmp_avx2’ [-Wimplicit-function-declaration]
6 | assert(__wcsncmp_avx2(L"abc", L"abd", (1UL << 62)) != 0);
| ^~~~~~~~~~~~~~
root@focal-glibc:~# ./test_wcsncmp && echo OK
OK
Verified in a fresh LXD container:
root@focal-glibc:~# gcc -static -o test_wcsncmp test_wcsncmp.c c:6:12: warning: implicit declaration of function ‘__wcsncmp_avx2’ [-Wimplicit- function- declaration] __wcsncmp_ avx2(L" abc", L"abd", (1UL << 62)) != 0);
In file included from test_wcsncmp.c:2:
test_wcsncmp.c: In function ‘main’:
test_wcsncmp.
6 | assert(
| ^~~~~~~~~~~~~~
root@focal-glibc:~# ./test_wcsncmp && echo OK
OK