]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc.dg/Wnonnull-4.c: Handle new overflow warning for 32-bit targets [PR112419]
authorHans-Peter Nilsson <hp@axis.com>
Thu, 16 Nov 2023 02:50:31 +0000 (03:50 +0100)
committerHans-Peter Nilsson <hp@bitrange.com>
Wed, 6 Dec 2023 00:46:51 +0000 (01:46 +0100)
PR testsuite/112419
* gcc.dg/Wnonnull-4.c (test_fda_n_5): Expect warning for exceeding
maximum object size for 32-bit targets.

gcc/testsuite/gcc.dg/Wnonnull-4.c

index 1f14fbba45dfed48609d18d4c66efad2d6b8e2d0..d63e76da70a271d17ccb100b6b05e168ea30ac7e 100644 (file)
@@ -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 }
 }