From: Jakub Jelinek Date: Thu, 2 Mar 2023 23:50:10 +0000 (+0100) Subject: testsuite: Fix up memchr-3.c test [PR108991] X-Git-Tag: basepoints/gcc-14~779 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=73bbfd5970ba3b7a5bcb3f7043d93fec89ccb991;p=thirdparty%2Fgcc.git testsuite: Fix up memchr-3.c test [PR108991] The newly added dg-warning directive was missing the comment argument, so the target selector was treated as comment and the warning was expected on all targets when it should be expected only on llp64 targets. 2023-03-03 Jakub Jelinek PR testsuite/108991 * gcc.dg/memchr-3.c: Add missing comment argument to dg-warning before target selector. --- diff --git a/gcc/testsuite/gcc.dg/memchr-3.c b/gcc/testsuite/gcc.dg/memchr-3.c index af1b26ef3aee..9c73265a89ee 100644 --- a/gcc/testsuite/gcc.dg/memchr-3.c +++ b/gcc/testsuite/gcc.dg/memchr-3.c @@ -6,7 +6,7 @@ typedef __INT8_TYPE__ int8_t; typedef __INT32_TYPE__ int32_t; -extern void* memchr (const void*, int, long); /* { dg-warning "-Wbuiltin-declaration-mismatch" { target llp64 } } */ +extern void* memchr (const void*, int, long); /* { dg-warning "-Wbuiltin-declaration-mismatch" "" { target llp64 } } */ struct SX {