From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id E566A3861877; Thu, 21 Dec 2023 18:59:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E566A3861877 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1703185170; bh=tzDzC/fqg10BV8e8m6HJs9ZnbVNGHyuVGT4iAC7rKGI=; h=From:To:Subject:Date:From; b=Vk5DQT9uVPXMjUN+BFf+Sgx6PDXnsR2OfViGVPE0wXJtOdGssJu4yn34XIWqA/q4+ De5X/n+VAbeIM42x80Gj5hw1R5kHMzTtKMTSr0fEus1uOyUocI6Zi7pJz0uiCL8Z5m A+Ft/414KJyhkJccD7Q08mzy/FodN13GzBn6qLds= 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: 129f8d39a9ef6053479b910a77cdbd47d50d7430 X-Git-Newrev: 12b88d610554accc6442937821a4817dd95eaaeb Message-Id: <20231221185930.E566A3861877@sourceware.org> Date: Thu, 21 Dec 2023 18:59:30 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=12b88d610554accc6442937821a4817dd95eaaeb commit 12b88d610554accc6442937821a4817dd95eaaeb 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)]]");