From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 723673858425; Fri, 28 Oct 2022 17:47:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 723673858425 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666979230; bh=qJLkfo6KDTSe6uUxTMH/ZXKFkBQHDlMWEaoNTS+XLUk=; h=From:To:Subject:Date:From; b=VUXjeEAUSrL1JzR6gH4Gb52sa/dQcLabEpS0akKCe8UJUvtXRIK8Psg6uGb2RG2zg Djw2NoCm/kMVxpn78nUdbj6vqgYWUGxt07R3ZpVvjYhsNIHk7haHF26nNiJuu8Y5Hn wrjtIGjURuz4Qd2/QpEWVlSOeRdVNyX8nODinGqk= 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: 6fdea0a59646ab4f4eaba28685e46307ca59f843 X-Git-Newrev: 46a4abd2e43c720020d51da86f35aa9b1cfec92f Message-Id: <20221028174710.723673858425@sourceware.org> Date: Fri, 28 Oct 2022 17:47:10 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=46a4abd2e43c720020d51da86f35aa9b1cfec92f commit 46a4abd2e43c720020d51da86f35aa9b1cfec92f 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 41b2e22641..65ffd31925 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)]]");