From: Jason Merrill Date: Tue, 16 Aug 2022 19:19:46 +0000 (-0400) Subject: c++: remove some xfails X-Git-Tag: basepoints/gcc-14~5125 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf13a13c65bd06c75d0e40e27f5ad34c7373fc55;p=thirdparty%2Fgcc.git c++: remove some xfails These tests are now passing. gcc/testsuite/ChangeLog: * g++.dg/warn/Wstringop-overflow-4.C: Only xfail for C++98. * g++.target/i386/bfloat_cpp_typecheck.C: Remove xfail. --- diff --git a/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C b/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C index c9d63932977..3716d2d13be 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]); // { dg-bogus "into a region of size" "" { xfail *-*-*} } + T (S (2), new int16_t[r_dmin_dmax + 1]); // { dg-bogus "into a region of size" "" { xfail c++98_only } } T (S (9), new int16_t[r_dmin_dmax * 2 + 1]); } diff --git a/gcc/testsuite/g++.target/i386/bfloat_cpp_typecheck.C b/gcc/testsuite/g++.target/i386/bfloat_cpp_typecheck.C index 5152336efe6..b800a6d6680 100644 --- a/gcc/testsuite/g++.target/i386/bfloat_cpp_typecheck.C +++ b/gcc/testsuite/g++.target/i386/bfloat_cpp_typecheck.C @@ -3,8 +3,8 @@ void foo (void) { - __bf16 (); /* { dg-bogus {invalid conversion to type '__bf16'} "" { xfail *-*-* } } */ - __bf16 a = __bf16(); /* { dg-bogus {invalid conversion to type '__bf16'} "" { xfail *-*-* } } */ + __bf16 (); /* { dg-bogus {invalid conversion to type '__bf16'} } */ + __bf16 a = __bf16(); /* { dg-bogus {invalid conversion to type '__bf16'} } */ __bf16 (0x1234); /* { dg-error {invalid conversion to type '__bf16'} } */ __bf16 (0.1); /* { dg-error {invalid conversion to type '__bf16'} } */ }