From: Adhemerval Zanella Date: Sat, 2 Apr 2022 02:51:04 +0000 (-0300) Subject: stdio: Fix tst-vfprintf-user-type on clang X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=593c609e5afc68d6ea1f2d0617f7f8f1bc679fae;p=thirdparty%2Fglibc.git stdio: Fix tst-vfprintf-user-type on clang The pointer alias comparison will be optimized away by the compiler, and gcc and clang will evaluate differently (clang evaluates as false, while gcc as true). --- diff --git a/stdio-common/tst-vfprintf-user-type.c b/stdio-common/tst-vfprintf-user-type.c index 3fc98b30f1..41ae8a45c1 100644 --- a/stdio-common/tst-vfprintf-user-type.c +++ b/stdio-common/tst-vfprintf-user-type.c @@ -183,7 +183,6 @@ do_test (void) #else extern int asprintf_alias (char **, const char *, ...) __asm__ ("asprintf"); #endif - TEST_VERIFY (asprintf_alias == asprintf); char *str = NULL; TEST_VERIFY (asprintf_alias (&str, "[[%P]]", 123L, 456.0) >= 0); TEST_COMPARE_STRING (str, "[[(123, 456.000000)]]");