diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-04-01 23:51:04 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-02-09 16:36:05 -0300 |
commit | 4ab007266ec3fb510f876e7b1d38e62d71db9623 (patch) | |
tree | 8d070b5fc90f267ee0c5e720258fd8b72da389fc | |
parent | 5894966857be2b460a971c1bd03df67af04a9e94 (diff) | |
download | glibc-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.c | 2 |
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)]]"); |