[committed] libstdc++: Use dg-bogus in new test [PR108554]

Message ID 20230127154429.1599859-1-jwakely@redhat.com
State Committed
Commit 3adf6dd508491d26e21840a8a70b016f876edd53
Headers
Series [committed] libstdc++: Use dg-bogus in new test [PR108554] |

Commit Message

Jonathan Wakely Jan. 27, 2023, 3:44 p.m. UTC
  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(+)
  

Patch

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>