From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 531483861850; Thu, 28 Sep 2023 17:57:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 531483861850 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1695923864; bh=Y6k1NsHyzQjVHnOMaj8IKiPI5TsoTVLjMEU1/CPMm0g=; h=From:To:Subject:Date:From; b=rup0LNSER6Ng1BEJlmOtpdhzxWrlSr6pQ0mHDdmQM2ErBswlsxKfz9lSXkV83Yyox NCHPCrlhRVdG2CoLyrT42Wdk/n/kUU6SA5/dj9mYRu9JdAgJYjP93EcciipSORCA10 Ez/HuyGQWXCJZp/tWXwjEawU8gVmVDtJFhFuxFIM= 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: 72acadb9f2089b92c8fd88c4c9055580267a4c44 X-Git-Newrev: c8aaadc449112a9f276a4c7eac84d47360a5ee5a Message-Id: <20230928175744.531483861850@sourceware.org> Date: Thu, 28 Sep 2023 17:57:44 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c8aaadc449112a9f276a4c7eac84d47360a5ee5a commit c8aaadc449112a9f276a4c7eac84d47360a5ee5a 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 adcbf33c20..7396c624c1 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)]]");