diff options
author | Jakub Jelinek <jakub@redhat.com> | 2023-11-15 08:55:16 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2023-11-15 08:56:24 +0100 |
commit | da36a438d8e7f31c75f1085e3a525cb1b7d5f256 (patch) | |
tree | f5d25ca17368459e2d4b75278f7bc8ed766b45bc /gcc | |
parent | 319bbb3693787a5493cc46793804231d1670cdee (diff) | |
download | gcc-da36a438d8e7f31c75f1085e3a525cb1b7d5f256.zip gcc-da36a438d8e7f31c75f1085e3a525cb1b7d5f256.tar.gz gcc-da36a438d8e7f31c75f1085e3a525cb1b7d5f256.tar.bz2 |
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 <jakub@redhat.com>
* gcc.dg/cpp/if-2.c: Adjust expected diagnostics for 16-bit targets.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/if-2.c | 4 |
1 files 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 e969aa0..2a3272d 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" } */ |