diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2023-11-22 02:54:29 +0100 |
---|---|---|
committer | Hans-Peter Nilsson <hp@bitrange.com> | 2023-11-23 01:29:30 +0100 |
commit | e935151bad1c2a02dc6a31fce3cc21b17d616243 (patch) | |
tree | 9533d1d5b4e1216f8861aa556b3126ecbd5caedd /gcc | |
parent | 26a7e775a20aeea7eff620e03cd5504c4eb9d48e (diff) | |
download | gcc-e935151bad1c2a02dc6a31fce3cc21b17d616243.zip gcc-e935151bad1c2a02dc6a31fce3cc21b17d616243.tar.gz gcc-e935151bad1c2a02dc6a31fce3cc21b17d616243.tar.bz2 |
testsuite: Tweak xfail bogus g++.dg/warn/Wstringop-overflow-4.C:144, PR106120
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C b/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C index 275ecac..2024f8d 100644 --- a/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C +++ b/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C @@ -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); |