From da36a438d8e7f31c75f1085e3a525cb1b7d5f256 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 15 Nov 2023 08:55:16 +0100 Subject: [PATCH] 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. --- gcc/testsuite/gcc.dg/cpp/if-2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" } */ -- 2.47.2