From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-out.m-online.net (mail-out.m-online.net [IPv6:2001:a60:0:28:0:1:25:1]) by sourceware.org (Postfix) with ESMTPS id 36FA63858C83 for ; Sat, 22 Apr 2023 07:12:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 36FA63858C83 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=nefkom.net Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4Q3Myn5R3xz1sB7s; Sat, 22 Apr 2023 09:12:01 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4Q3Myn5267z1qqlS; Sat, 22 Apr 2023 09:12:01 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id k7cw6OV7q3U4; Sat, 22 Apr 2023 09:12:00 +0200 (CEST) X-Auth-Info: ZaYkQRhouX4yXKJIHlFO4EuCsbfeJgpoxdzyw2NLvFzXjx8EQ6yk14HJN/dpab4v Received: from tiger.home (aftr-82-135-86-35.dynamic.mnet-online.de [82.135.86.35]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sat, 22 Apr 2023 09:12:00 +0200 (CEST) Received: by tiger.home (Postfix, from userid 1000) id 27D9419669A; Sat, 22 Apr 2023 09:11:56 +0200 (CEST) From: Andreas Schwab To: =?utf-8?B?0L3QsNCx?= via Libc-alpha Cc: =?utf-8?B?0L3QsNCx?= Subject: Re: [PATCH 1/3] posix: add (failing) test for REG_STARTEND In-Reply-To: <6ae8f638ecd1a0f0d76a104c8903baf96ecd317a.1682130047.git.nabijaczleweli@nabijaczleweli.xyz> (=?utf-8?B?ItC90LDQsQ==?= via Libc-alpha"'s message of "Sat, 22 Apr 2023 04:21:50 +0200") References: <6ae8f638ecd1a0f0d76a104c8903baf96ecd317a.1682130047.git.nabijaczleweli@nabijaczleweli.xyz> X-Yow: I left my WALLET in the BATHROOM!! Date: Sat, 22 Apr 2023 09:11:56 +0200 Message-ID: <87wn24crwj.fsf@linux-m68k.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,RCVD_IN_BARRACUDACENTRAL,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: tst-reg-startend.c:75:27: error: stray ‘\304’ in program static const char *const a��_data[2] = {"_aaćdef", "_aćdef"}; ^ tst-reg-startend.c:75:28: error: stray ‘\207’ in program static const char *const a��_data[2] = {"_aaćdef", "_aćdef"}; ^ tst-reg-startend.c:75:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_data’ static const char *const ać_data[2] = {"_aaćdef", "_aćdef"}; ^~~~~ tst-reg-startend.c:76:20: error: stray ‘\304’ in program static const bool a��_exp[] = {false, true}; ^ tst-reg-startend.c:76:21: error: stray ‘\207’ in program static const bool a��_exp[] = {false, true}; ^ tst-reg-startend.c:76:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_exp’ static const bool ać_exp[] = {false, true}; ^~~~ tst-reg-startend.c:79:6: error: stray ‘\304’ in program testa�� (void) ^ tst-reg-startend.c:79:7: error: stray ‘\207’ in program testa�� (void) ^ tst-reg-startend.c: In function ‘testa’: tst-reg-startend.c:89:27: error: stray ‘\304’ in program if (regexec (&rgx, a��_data[i], 1, &match, REG_STARTEND) == ać_exp[i]) ^ tst-reg-startend.c:89:28: error: stray ‘\207’ in program if (regexec (&rgx, a��_data[i], 1, &match, REG_STARTEND) == ać_exp[i]) ^ tst-reg-startend.c:89:26: error: ‘a’ undeclared (first use in this function) if (regexec (&rgx, ać_data[i], 1, &match, REG_STARTEND) == ać_exp[i]) ^ tst-reg-startend.c:89:26: note: each undeclared identifier is reported only once for each function it appears in tst-reg-startend.c:89:29: error: expected ‘)’ before ‘_data’ if (regexec (&rgx, ać_data[i], 1, &match, REG_STARTEND) == ać_exp[i]) ^~~~~ tst-reg-startend.c:89:11: error: too few arguments to function ‘regexec’ if (regexec (&rgx, ać_data[i], 1, &match, REG_STARTEND) == ać_exp[i]) ^~~~~~~ In file included from ../include/regex.h:2:0, from tst-reg-startend.c:15: ../posix/regex.h:679:12: note: declared here extern int regexec (const regex_t *_Restrict_ __preg, ^~~~~~~ tst-reg-startend.c:89:68: error: stray ‘\304’ in program if (regexec (&rgx, ać_data[i], 1, &match, REG_STARTEND) == a��_exp[i]) ^ tst-reg-startend.c:89:69: error: stray ‘\207’ in program if (regexec (&rgx, ać_data[i], 1, &match, REG_STARTEND) == a��_exp[i]) ^ tst-reg-startend.c:89:70: error: expected ‘)’ before ‘_exp’ if (regexec (&rgx, ać_data[i], 1, &match, REG_STARTEND) == ać_exp[i]) ^~~~ tst-reg-startend.c:90:18: error: stray ‘\304’ in program BASEERR(a��_data), fprintf (stdout, ": %s match\n", ^ tst-reg-startend.c:48:13: note: in definition of macro ‘BASEERR’ fwrite (data[i] + bound.rm_so, 1, bound.rm_eo - bound.rm_so, stdout) ^~~~ tst-reg-startend.c:90:19: error: stray ‘\207’ in program BASEERR(a��_data), fprintf (stdout, ": %s match\n", ^ tst-reg-startend.c:48:13: note: in definition of macro ‘BASEERR’ fwrite (data[i] + bound.rm_so, 1, bound.rm_eo - bound.rm_so, stdout) ^~~~ tst-reg-startend.c:90:20: error: expected ‘)’ before ‘_data’ BASEERR(ać_data), fprintf (stdout, ": %s match\n", ^ tst-reg-startend.c:48:13: note: in definition of macro ‘BASEERR’ fwrite (data[i] + bound.rm_so, 1, bound.rm_eo - bound.rm_so, stdout) ^~~~ tst-reg-startend.c:48:5: error: too few arguments to function ‘fwrite’ fwrite (data[i] + bound.rm_so, 1, bound.rm_eo - bound.rm_so, stdout) ^ tst-reg-startend.c:90:9: note: in expansion of macro ‘BASEERR’ BASEERR(ać_data), fprintf (stdout, ": %s match\n", ^~~~~~~ In file included from ../include/stdio.h:14:0, from tst-reg-startend.c:16: ../libio/stdio.h:739:15: note: declared here extern size_t fwrite (const void *__restrict __ptr, size_t __size, ^~~~~~ tst-reg-startend.c:91:37: error: stray ‘\304’ in program a��_exp[i] ? "no" : "yes"); ^ tst-reg-startend.c:91:38: error: stray ‘\207’ in program a��_exp[i] ? "no" : "yes"); ^ tst-reg-startend.c:91:39: error: expected ‘)’ before ‘_exp’ ać_exp[i] ? "no" : "yes"); ^~~~ tst-reg-startend.c:90:26: error: left-hand operand of comma expression has no effect [-Werror=unused-value] BASEERR(ać_data), fprintf (stdout, ": %s match\n", ^ tst-reg-startend.c:94:18: error: stray ‘\304’ in program BASEERR(a��_data), fprintf (stdout, ": wanted {%d, %d}, got {%d, %d}\n", ^ tst-reg-startend.c:48:13: note: in definition of macro ‘BASEERR’ fwrite (data[i] + bound.rm_so, 1, bound.rm_eo - bound.rm_so, stdout) ^~~~ tst-reg-startend.c:94:19: error: stray ‘\207’ in program BASEERR(a��_data), fprintf (stdout, ": wanted {%d, %d}, got {%d, %d}\n", ^ tst-reg-startend.c:48:13: note: in definition of macro ‘BASEERR’ fwrite (data[i] + bound.rm_so, 1, bound.rm_eo - bound.rm_so, stdout) ^~~~ tst-reg-startend.c:94:20: error: expected ‘)’ before ‘_data’ BASEERR(ać_data), fprintf (stdout, ": wanted {%d, %d}, got {%d, %d}\n", ^ tst-reg-startend.c:48:13: note: in definition of macro ‘BASEERR’ fwrite (data[i] + bound.rm_so, 1, bound.rm_eo - bound.rm_so, stdout) ^~~~ tst-reg-startend.c:48:5: error: too few arguments to function ‘fwrite’ fwrite (data[i] + bound.rm_so, 1, bound.rm_eo - bound.rm_so, stdout) ^ tst-reg-startend.c:94:9: note: in expansion of macro ‘BASEERR’ BASEERR(ać_data), fprintf (stdout, ": wanted {%d, %d}, got {%d, %d}\n", ^~~~~~~ In file included from ../include/stdio.h:14:0, from tst-reg-startend.c:16: ../libio/stdio.h:739:15: note: declared here extern size_t fwrite (const void *__restrict __ptr, size_t __size, ^~~~~~ tst-reg-startend.c:94:26: error: left-hand operand of comma expression has no effect [-Werror=unused-value] BASEERR(ać_data), fprintf (stdout, ": wanted {%d, %d}, got {%d, %d}\n", ^ tst-reg-startend.c: In function ‘do_test’: tst-reg-startend.c:112:15: error: stray ‘\304’ in program testa�� (); ^ tst-reg-startend.c:112:16: error: stray ‘\207’ in program testa�� (); ^ -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."