diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-04-01 23:51:04 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-02-09 10:29:18 -0300 |
commit | 0974bec8f4835d84933399a914fb18e71cfa2efc (patch) | |
tree | 2542024272fed643d08abcd17b35a6302a700f54 | |
parent | 890868ea70b0a9d8167b3fc6ba361e85a20823b6 (diff) | |
download | glibc-0974bec8f4835d84933399a914fb18e71cfa2efc.tar glibc-0974bec8f4835d84933399a914fb18e71cfa2efc.tar.gz glibc-0974bec8f4835d84933399a914fb18e71cfa2efc.tar.bz2 glibc-0974bec8f4835d84933399a914fb18e71cfa2efc.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.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 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)]]"); |