From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 43C0C3858285; Wed, 7 Feb 2024 14:12:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 43C0C3858285 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1707315168; bh=jxdJUD7tKYA7EZ0kE/Y33k6LF0MmA02+hQ3ORmHQFSA=; h=From:To:Subject:Date:From; b=CKdLlCM9srmcwFgc7VaoKKpCsG1pX+Cu+BHEowTwsjliUaIYxZwVAi1k2d5F2B0nN VAWW4ATzAZl09IuaAIf5u+VGR5Fx8S9aaapIi0OIV9lvNelDhUlxShyE3pFMYS2ab5 +JW1HkhdlNZutZXYpDuEndoDpb/XpFSPiiiH/ecE= 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: c096441044adfeecbf0c74897359e71d023aa8b4 X-Git-Newrev: 4f4faba57c79e14db379331f8cd1932b02525b2b Message-Id: <20240207141248.43C0C3858285@sourceware.org> Date: Wed, 7 Feb 2024 14:12:48 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=4f4faba57c79e14db379331f8cd1932b02525b2b commit 4f4faba57c79e14db379331f8cd1932b02525b2b 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)]]");