From: Aldy Hernandez Date: Sun, 26 Jun 2022 15:30:18 +0000 (+0200) Subject: XFAIL a test in g++.dg/warn/Wstringop-overflow-4.C X-Git-Tag: basepoints/gcc-14~5936 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80ace9185dc534e4d6cb19506300c4fcad4bd916;p=thirdparty%2Fgcc.git XFAIL a test in g++.dg/warn/Wstringop-overflow-4.C As per the explanation in the test, and in the DOM conversion to ranger patch, this is a known regression. I had mentioned I would XFAIL this test, but forgot to do so. There is an analysis in the test itself as to what is going on. Tested on x86-64 Linux. gcc/testsuite/ChangeLog: * g++.dg/warn/Wstringop-overflow-4.C: XFAIL a test. --- diff --git a/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C b/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C index eb4801918fc..c9d63932977 100644 --- a/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C +++ b/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C @@ -195,7 +195,7 @@ void test_strcpy_new_int16_t (size_t n, const size_t vals[]) iftmp.2_33 = _45 * 2; ;; iftmp.2_33 = 0 _34 = operator new [] (iftmp.2_33); ;; new [] (0) */ - T (S (2), new int16_t[r_dmin_dmax + 1]); + T (S (2), new int16_t[r_dmin_dmax + 1]); // { dg-bogus "into a region of size" "" { xfail *-*-*} } T (S (9), new int16_t[r_dmin_dmax * 2 + 1]); }