From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id BD5B23858413; Mon, 4 Apr 2022 13:00:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BD5B23858413 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: 342c49a85a035a92d6e7683e00c9084faa217d2e X-Git-Newrev: 5b2e20791ccc1dcdd91b3302e947040647df0495 Message-Id: <20220404130048.BD5B23858413@sourceware.org> Date: Mon, 4 Apr 2022 13:00:48 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Apr 2022 13:00:48 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=5b2e20791ccc1dcdd91b3302e947040647df0495 commit 5b2e20791ccc1dcdd91b3302e947040647df0495 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)]]");