about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-04-01 23:51:04 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-04-17 16:12:41 -0300
commit513a0b4b8b79fab04adf096e76c9dbd7cee3029d (patch)
treec22f3f3349b9783a3c1c3b1b015e165ebed26ced
parent645ebc4942a7edc5d4ddf31ce9ee5dfbe3c751a2 (diff)
downloadglibc-513a0b4b8b79fab04adf096e76c9dbd7cee3029d.tar.gz
glibc-513a0b4b8b79fab04adf096e76c9dbd7cee3029d.tar.xz
glibc-513a0b4b8b79fab04adf096e76c9dbd7cee3029d.zip
stdio: Fix tst-vfprintf-user-type on clang
clang always evaluate the pointer alias compasion as false.
-rw-r--r--stdio-common/tst-vfprintf-user-type.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdio-common/tst-vfprintf-user-type.c b/stdio-common/tst-vfprintf-user-type.c
index de2b9d17ee..03504f4392 100644
--- a/stdio-common/tst-vfprintf-user-type.c
+++ b/stdio-common/tst-vfprintf-user-type.c
@@ -183,7 +183,7 @@ do_test (void)
 #else
   extern int asprintf_alias (char **, const char *, ...) __asm__ ("asprintf");
 #endif
-  TEST_VERIFY (asprintf_alias == asprintf);
+  TEST_VERIFY ((uintptr_t) asprintf_alias == (uintptr_t) asprintf);
   char *str = NULL;
   TEST_VERIFY (asprintf_alias (&str, "[[%P]]", 123L, 456.0) >= 0);
   TEST_COMPARE_STRING (str, "[[(123, 456.000000)]]");