diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2023-11-16 03:50:31 +0100 |
---|---|---|
committer | Hans-Peter Nilsson <hp@bitrange.com> | 2023-12-06 01:46:51 +0100 |
commit | 0d51e17791c7876396ed0f6cc51bf103e518877d (patch) | |
tree | 56ade058fbb5ba257446b95c018e5caa1dc1568d /gcc | |
parent | 3dd09cd9e15f996b0f0768554d20ef1aa8b26f58 (diff) | |
download | gcc-0d51e17791c7876396ed0f6cc51bf103e518877d.zip gcc-0d51e17791c7876396ed0f6cc51bf103e518877d.tar.gz gcc-0d51e17791c7876396ed0f6cc51bf103e518877d.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.dg/Wnonnull-4.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/Wnonnull-4.c b/gcc/testsuite/gcc.dg/Wnonnull-4.c index 1f14fbb..d63e76d 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 } } |