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.
This commit is contained in:
Jason Merrill 2022-08-16 15:19:46 -04:00
parent 60468d6cd4
commit bf13a13c65
2 changed files with 3 additions and 3 deletions

View file

@ -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]);
}

View file

@ -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'} } */
}