summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-04-01 23:51:04 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-02-09 16:36:05 -0300
commit4ab007266ec3fb510f876e7b1d38e62d71db9623 (patch)
tree8d070b5fc90f267ee0c5e720258fd8b72da389fc
parent5894966857be2b460a971c1bd03df67af04a9e94 (diff)
downloadglibc-4ab007266ec3fb510f876e7b1d38e62d71db9623.tar.gz
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 7cc69dc716..e3fdf74c00 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)]]");