[libc++][test] Avoid assert() in gnu/hash/specializations.verify.cpp (#237485)

In glibc 2.44 under C++26, `<assert.h>` expands variadic `assert(...)`
with `__VA_ARGS__` twice, causing the compile-time call-operator error
in this `-verify` test (updated in #145476) to fire twice on
https://lab.llvm.org/staging/#/builders/sanitizer-aarch64-linux-bootstrap-msan
(https://lab.llvm.org/staging/#/builders/7/builds/93).

Drop `<assert.h>` and check the call expression directly.

Discovered during upgrading buildbot GLIBC 2.43 to 2.44.

Related issue https://github.com/llvm/llvm-project/issues/233597.

Assisted-by: Gemini
GitOrigin-RevId: a7667703eeb633e237aa8280ffc42e963e07189a
1 file changed