From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 53F7638582BE; Wed, 30 Aug 2023 12:42:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 53F7638582BE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1693399323; bh=YQoeQlqEfcqCgkyVF0pOpDoZGcb1oDb3l1QSdlKEXUA=; h=From:To:Subject:Date:From; b=Yh2SElISe8ar57RtkVh8c0TL+jARueiA8Ihw25d8HQcfbDyUyIrSzs90B1lo85unn /CYQxVdK9no4rQkbkhZFwDIDOmXUIhH4LpFU8KCUwYrdrpC3k4xr9I1LJZof5T+CpZ XSG0snEkNaqEGxoWExkN/p2W81UepVF9/ZuwQjy0= 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: 8e5dcc45b8354945831bdfcf1b6056af38ed5a57 X-Git-Newrev: df2ee645967b60e9d84df02c9557175c51619349 Message-Id: <20230830124203.53F7638582BE@sourceware.org> Date: Wed, 30 Aug 2023 12:42:03 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=df2ee645967b60e9d84df02c9557175c51619349 commit df2ee645967b60e9d84df02c9557175c51619349 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)]]");