[PATCH] Remove obsolete test from gdb.cp/var-tag.exp

Tom Tromey tom@tromey.com
Fri Jan 31 15:52:48 GMT 2025


There is a test in gdb.cp/var-tag.exp that is kfail'd.  I happened
across this while working on another series and found that the PR it
referenced was closed as invalid.  On that basis I think the test
should be deleted.
---
 gdb/testsuite/gdb.cp/var-tag.exp | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/gdb/testsuite/gdb.cp/var-tag.exp b/gdb/testsuite/gdb.cp/var-tag.exp
index 37a5ba2dc2d..d879328221c 100644
--- a/gdb/testsuite/gdb.cp/var-tag.exp
+++ b/gdb/testsuite/gdb.cp/var-tag.exp
@@ -98,13 +98,4 @@ with_test_prefix "in C::f" {
     do_global_tests c
 }
 
-# Another hard-to-guess-the-users-intent bug...
-# It would be really nice if we could query the user!
-with_test_prefix "global collision" {
-    gdb_test_no_output "set language c++"
-    setup_kfail "c++/16463" "*-*-*"
-    gdb_test "print global" "= 3"
-
-    # ... with a simple workaround:
-    gdb_test "print ::global" "= 3"
-}
+gdb_test "print ::global" "= 3"
-- 
2.46.1



More information about the Gdb-patches mailing list