public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-6203] gcc.dg/Wnonnull-4.c: Handle new overflow warning for 32-bit targets [PR112419]
@ 2023-12-06  0:47 Hans-Peter Nilsson
  0 siblings, 0 replies; only message in thread
From: Hans-Peter Nilsson @ 2023-12-06  0:47 UTC (permalink / raw)
  To: gcc-cvs

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 }
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-12-06  0:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-06  0:47 [gcc r14-6203] gcc.dg/Wnonnull-4.c: Handle new overflow warning for 32-bit targets [PR112419] Hans-Peter Nilsson

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).