diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-04-01 23:51:04 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-04-17 16:12:41 -0300 |
commit | 513a0b4b8b79fab04adf096e76c9dbd7cee3029d (patch) | |
tree | c22f3f3349b9783a3c1c3b1b015e165ebed26ced | |
parent | 645ebc4942a7edc5d4ddf31ce9ee5dfbe3c751a2 (diff) | |
download | glibc-513a0b4b8b79fab04adf096e76c9dbd7cee3029d.zip glibc-513a0b4b8b79fab04adf096e76c9dbd7cee3029d.tar.gz glibc-513a0b4b8b79fab04adf096e76c9dbd7cee3029d.tar.bz2 |
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 de2b9d1..03504f4 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)]]"); |