]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Adjust gcc.dg/cpp/if-2.c for 16-bit targets
authorJakub Jelinek <jakub@redhat.com>
Wed, 15 Nov 2023 07:55:16 +0000 (08:55 +0100)
committerJakub Jelinek <jakub@redhat.com>
Wed, 15 Nov 2023 07:56:24 +0000 (08:56 +0100)
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  <jakub@redhat.com>

* gcc.dg/cpp/if-2.c: Adjust expected diagnostics for 16-bit targets.

gcc/testsuite/gcc.dg/cpp/if-2.c

index e969aa0b473bb89e1061c10c23993851e285cd97..2a3272dcd92ec04e7c950657820d60224509114a 100644 (file)
@@ -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" } */