From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 798D43858D3C; Fri, 9 Feb 2024 17:37:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 798D43858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1707500253; bh=GEmL/W32QV+FuTOKMiXlSulwMAUwm1cn+w6yeIi0i4g=; h=From:To:Subject:Date:From; b=LP+CG8FMM3STjRzszoVUo2VnE0wTMkYVuOkLzrrgg9s7HIxDOcuD36jbdnsU5ce1c Awg/JEu4N/y2nEAMb0VaGdnCiS8HHWL5W6Di8VTFQLeM8DyZ1M6HbZpR86cXo09DuI GYoDB1J/ze88EkbSD6J2wnbTR0df5odFpBXwi36E= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] stdio: Fix tst-vfprintf-user-type on clang X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: 890868ea70b0a9d8167b3fc6ba361e85a20823b6 X-Git-Newrev: 0974bec8f4835d84933399a914fb18e71cfa2efc Message-Id: <20240209173733.798D43858D3C@sourceware.org> Date: Fri, 9 Feb 2024 17:37:31 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=0974bec8f4835d84933399a914fb18e71cfa2efc commit 0974bec8f4835d84933399a914fb18e71cfa2efc Author: Adhemerval Zanella Date: Fri Apr 1 23:51:04 2022 -0300 stdio: Fix tst-vfprintf-user-type on clang clang always evaluate the pointer alias compasion as false. Diff: --- stdio-common/tst-vfprintf-user-type.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)]]");