From: Jakub Jelinek Date: Wed, 15 Nov 2023 07:55:16 +0000 (+0100) Subject: testsuite: Adjust gcc.dg/cpp/if-2.c for 16-bit targets X-Git-Tag: basepoints/gcc-15~4658 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da36a438d8e7f31c75f1085e3a525cb1b7d5f256;p=thirdparty%2Fgcc.git testsuite: Adjust gcc.dg/cpp/if-2.c for 16-bit targets Jeff reported this testcase newly FAILs on 16-bit targets, the following patch adjusts the expected diagnostics for that case. 2023-11-15 Jakub Jelinek * gcc.dg/cpp/if-2.c: Adjust expected diagnostics for 16-bit targets. --- diff --git a/gcc/testsuite/gcc.dg/cpp/if-2.c b/gcc/testsuite/gcc.dg/cpp/if-2.c index e969aa0b473b..2a3272dcd92e 100644 --- a/gcc/testsuite/gcc.dg/cpp/if-2.c +++ b/gcc/testsuite/gcc.dg/cpp/if-2.c @@ -17,8 +17,8 @@ #error 0x1234 /* { dg-bogus "error" "wide charconst recognition 3" } */ #endif -/* The 'character constant (is )?too long' message is produced by 16-bit targets. */ -#if 'abcd' /* { dg-warning "(multi-character character constant)|(character constant (is )?too long)" "multi-character charconst" } */ +/* The 'multi-character literal with 4 characters exceeds 'int' size of \[0-9]+ bytes' message is produced by 16-bit targets. */ +#if 'abcd' /* { dg-warning "(multi-character character constant)|(multi-character literal with 4 characters exceeds 'int' size of \[0-9]+ bytes)" "multi-character charconst" } */ #endif #if 'abcdefghi' /* { dg-warning "multi-character literal with \[0-9]+ characters exceeds 'int' size of \[0-9]+ bytes" } */