]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++: remove some xfails
authorJason Merrill <jason@redhat.com>
Tue, 16 Aug 2022 19:19:46 +0000 (15:19 -0400)
committerJason Merrill <jason@redhat.com>
Tue, 16 Aug 2022 19:19:46 +0000 (15:19 -0400)
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.

gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C
gcc/testsuite/g++.target/i386/bfloat_cpp_typecheck.C

index c9d639329775404b85cb33c36cbe3060f32d0cea..3716d2d13be0818d04fb234ad69531985f5ea2be 100644 (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]);
 }
 
index 5152336efe61d36c9f4deb27d85edc2f4bc6fc01..b800a6d66807e2ddf5924f799f591352c8aec4c8 100644 (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'} } */
 }