diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-07-05 12:16:46 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2024-07-05 12:18:34 +0100 |
commit | f63896ff5a4fa4fe451f9ec7f16026eb97ed8e6d (patch) | |
tree | e3f5e591bbe5895a20ed70af27dc93383a63d8b6 /libstdc++-v3/testsuite | |
parent | 6025256d47b36fed455cc4f8dd4becf53208bbae (diff) | |
download | gcc-f63896ff5a4fa4fe451f9ec7f16026eb97ed8e6d.zip gcc-f63896ff5a4fa4fe451f9ec7f16026eb97ed8e6d.tar.gz gcc-f63896ff5a4fa4fe451f9ec7f16026eb97ed8e6d.tar.bz2 |
libstdc++: Add dg-error for new -Wdelete-incomplete diagnostics [PR115747]
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.
Diffstat (limited to 'libstdc++-v3/testsuite')
-rw-r--r-- | libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc index d4cb45d..a4c99ca 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc @@ -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" } |