public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Adhemerval Zanella <azanella@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc/azanella/clang] string: Disable test_strncmp (TODO)
Date: Wed, 30 Aug 2023 12:43:09 +0000 (GMT)	[thread overview]
Message-ID: <20230830124309.5E5C23858414@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=b4ffb93ad05f0315b90d3b7ad627d35272cfef97

commit b4ffb93ad05f0315b90d3b7ad627d35272cfef97
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
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 ();

             reply	other threads:[~2023-08-30 12:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-30 12:43 Adhemerval Zanella [this message]
2023-09-28 17:58 Adhemerval Zanella
2023-12-21 19:00 Adhemerval Zanella
2024-01-29 18:03 Adhemerval Zanella

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230830124309.5E5C23858414@sourceware.org \
    --to=azanella@sourceware.org \
    --cc=glibc-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).