public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Hans-Peter Nilsson <hp@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-6203] gcc.dg/Wnonnull-4.c: Handle new overflow warning for 32-bit targets [PR112419] Date: Wed, 6 Dec 2023 00:47:10 +0000 (GMT) [thread overview] Message-ID: <20231206004710.0A97438582B1@sourceware.org> (raw) https://gcc.gnu.org/g:0d51e17791c7876396ed0f6cc51bf103e518877d commit r14-6203-g0d51e17791c7876396ed0f6cc51bf103e518877d Author: Hans-Peter Nilsson <hp@axis.com> Date: Thu Nov 16 03:50:31 2023 +0100 gcc.dg/Wnonnull-4.c: Handle new overflow warning for 32-bit targets [PR112419] PR testsuite/112419 * gcc.dg/Wnonnull-4.c (test_fda_n_5): Expect warning for exceeding maximum object size for 32-bit targets. Diff: --- gcc/testsuite/gcc.dg/Wnonnull-4.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/gcc.dg/Wnonnull-4.c b/gcc/testsuite/gcc.dg/Wnonnull-4.c index 1f14fbba45d..d63e76da70a 100644 --- a/gcc/testsuite/gcc.dg/Wnonnull-4.c +++ b/gcc/testsuite/gcc.dg/Wnonnull-4.c @@ -142,6 +142,7 @@ void test_fda_n_5 (int r_m1) T ( 1); // { dg-bogus "argument 2 of variable length array 'double\\\[n]\\\[5]' is null but the corresponding bound argument 1 value is 1" } T ( 9); // { dg-bogus "argument 2 of variable length array 'double\\\[n]\\\[5]' is null but the corresponding bound argument 1 value is 9" } T (max); // { dg-bogus "argument 2 of variable length array 'double\\\[n]\\\[5]' is null but the corresponding bound argument 1 value is \\d+" } +// { dg-warning "size 4294967256 exceeds maximum object size" "" { target ilp32 } .-1 } }
reply other threads:[~2023-12-06 0:47 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20231206004710.0A97438582B1@sourceware.org \ --to=hp@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).