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: Thu, 21 Dec 2023 19:00:21 +0000 (GMT) [thread overview] Message-ID: <20231221190021.AD381386C5A6@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=70c4e0120f9fe54fe831174ab195b2aa0e740e1d commit 70c4e0120f9fe54fe831174ab195b2aa0e740e1d 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 ();
next reply other threads:[~2023-12-21 19:00 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-12-21 19:00 Adhemerval Zanella [this message] -- strict thread matches above, loose matches on Subject: below -- 2024-01-29 18:03 Adhemerval Zanella 2023-09-28 17:58 Adhemerval Zanella 2023-08-30 12:43 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=20231221190021.AD381386C5A6@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: linkBe 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).