]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Add dg-error for new -Wdelete-incomplete diagnostics [PR115747]
authorJonathan Wakely <jwakely@redhat.com>
Fri, 5 Jul 2024 11:16:46 +0000 (12:16 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 5 Jul 2024 11:18:34 +0000 (12:18 +0100)
Since r15-1794-gbeb7a418aaef2e the -Wdelete-incomplete diagnostic is a
permerror instead of a (suppressed in system headers) warning. Add
dg-error directives.

libstdc++-v3/ChangeLog:

PR c++/115747
* testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc:
Add dg-error for new C++26 diagnostics.

libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc

index d4cb45d0e0617b9f2eb4a599b5b78e848309cef1..a4c99ca17752552c8fe2098054e5fdd5bb78424e 100644 (file)
@@ -39,6 +39,9 @@ void test01()
   // { dg-error "incomplete" "" { target *-*-* } 600 }
 }
 
+// { dg-error "-Wdelete-incomplete" "" { target c++26 } 283 }
+// { dg-error "-Wdelete-incomplete" "" { target c++26 } 305 }
+
 // Ignore additional diagnostic given with -Wsystem-headers:
 // { dg-prune-output "has incomplete type" }
 // { dg-prune-output "possible problem detected" }