From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 23AD93888C74; Thu, 28 Sep 2023 17:58:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 23AD93888C74 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1695923915; bh=3NIZYAgMwJJnga9rL+IGDsD66nhA7TcqtT6gY78wJgw=; h=From:To:Subject:Date:From; b=kSttg8F5VOQoXZqNWKNusdqV7puZg2leqcUbVhRAuLTzbYJ7Yf9PxP07tGZtNXmCN cPkRVCW5X5mAjza1iTuF3s//vxM1kQeIwE/5YQCrwWU9gmhdITHcQeAlQ2REfufiqM r6+vgPc56HO5g/3EijTgUaqmBNYHpKDEiBRt+ouk= 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] string: Disable test_strncmp (TODO) X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: f19deb6c3bd039159c63fd21f1b6219973175854 X-Git-Newrev: bbf1af40706c6a687a896ce64f32fe04709c75fd Message-Id: <20230928175835.23AD93888C74@sourceware.org> Date: Thu, 28 Sep 2023 17:58:35 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=bbf1af40706c6a687a896ce64f32fe04709c75fd commit bbf1af40706c6a687a896ce64f32fe04709c75fd Author: Adhemerval Zanella Date: Thu Jul 27 16:14:46 2023 -0300 string: Disable test_strncmp (TODO) The test generates an ICE with clang 18.0. Diff: --- string/tester.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/string/tester.c b/string/tester.c index 1c1bed1296..0a3bd44cca 100644 --- a/string/tester.c +++ b/string/tester.c @@ -492,6 +492,7 @@ test_strncat (void) } } +#ifndef __clang__ static void test_strncmp (void) { @@ -513,6 +514,7 @@ test_strncmp (void) check (strncmp ("abc", "", (size_t)-1) > 0, 14); /* set sign bit in count */ check (strncmp ("abc", "abc", (size_t)-2) == 0, 15); } +#endif static void test_strncpy (void) @@ -1586,7 +1588,9 @@ main (void) test_strncat (); /* strncmp. */ +#ifndef __clang__ test_strncmp (); +#endif /* strncpy. */ test_strncpy ();