]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Tweak xfail bogus g++.dg/warn/Wstringop-overflow-4.C:144, PR106120
authorHans-Peter Nilsson <hp@axis.com>
Wed, 22 Nov 2023 01:54:29 +0000 (02:54 +0100)
committerHans-Peter Nilsson <hp@bitrange.com>
Thu, 23 Nov 2023 00:29:30 +0000 (01:29 +0100)
The conditions under which this this bogus warning is
emitted has changed to not happen for 32-bit targets
anymore.  Adjust accordingly.

PR testsuite/106120
* g++.dg/warn/Wstringop-overflow-4.C:144 XFAIL bogus warning for
lp64 targets with c++98.

gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C

index 275ecac01b5f89aaa008939792dfb1dfba736131..2024f8d93ca3d7a9bdf5ba65d80cd57ca6579fce 100644 (file)
@@ -141,7 +141,7 @@ void test_strcpy_new_int16_t (size_t n, const size_t vals[])
 
   int r_imin_imax = SR (INT_MIN, INT_MAX);
   T (S (1), new int16_t[r_imin_imax]);
-  T (S (2), new int16_t[r_imin_imax + 1]); // { dg-bogus "into a region of size" "pr106120" { xfail { c++98_only } } }
+  T (S (2), new int16_t[r_imin_imax + 1]); // { dg-bogus "into a region of size" "pr106120" { xfail { lp64 && c++98_only } } }
   T (S (9), new int16_t[r_imin_imax * 2 + 1]);
 
   int r_0_imax = SR (0, INT_MAX);