[gcc r13-2082] c++: remove some xfails
Jason Merrill
jason@gcc.gnu.org
Tue Aug 16 21:03:57 GMT 2022
https://gcc.gnu.org/g:bf13a13c65bd06c75d0e40e27f5ad34c7373fc55
commit r13-2082-gbf13a13c65bd06c75d0e40e27f5ad34c7373fc55
Author: Jason Merrill <jason@redhat.com>
Date: Tue Aug 16 15:19:46 2022 -0400
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:
---
gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C | 2 +-
gcc/testsuite/g++.target/i386/bfloat_cpp_typecheck.C | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
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'} } */
}
More information about the Gcc-cvs
mailing list