I messed up my first attempt to use dg-bogus with a typo, so didn't include it in this new test. But it works if I fix the typo.
Tested x86_64-linux. Pushed to trunk. -- >8 -- libstdc++-v3/ChangeLog: PR libstdc++/108554 * testsuite/23_containers/map/modifiers/108554.cc: Use dg-bogus. --- libstdc++-v3/testsuite/23_containers/map/modifiers/108554.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libstdc++-v3/testsuite/23_containers/map/modifiers/108554.cc b/libstdc++-v3/testsuite/23_containers/map/modifiers/108554.cc index 7076682f4c9..811a479b382 100644 --- a/libstdc++-v3/testsuite/23_containers/map/modifiers/108554.cc +++ b/libstdc++-v3/testsuite/23_containers/map/modifiers/108554.cc @@ -4,6 +4,8 @@ // PR libstdc++/108554 // Warning from -Wnull-dereference when extracting a unique_ptr from a map. +// { dg-bogus "null pointer dereference" "PR 108554" { target *-*-* } 0 } + #include <map> #include <memory> #include <string> -- 2.39.1