aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/class2.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.cp/class2.exp')
-rw-r--r--gdb/testsuite/gdb.cp/class2.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.cp/class2.exp b/gdb/testsuite/gdb.cp/class2.exp
index d39130d..3d8bf12 100644
--- a/gdb/testsuite/gdb.cp/class2.exp
+++ b/gdb/testsuite/gdb.cp/class2.exp
@@ -121,6 +121,6 @@ gdb_test "p e" "= \{<No data fields>\}" "print object with no data fields"
# Printing NULL pointers with "set print object on"
gdb_test "set print object on" ""
-gdb_test "p acp" "= \\(C \\*\\) 0x\[a-f0-9\]+"
+gdb_test "p acp" "= \\(C \\*\\) ${hex}"
gdb_test "p acp->c1" "\\(A \\*\\) 0x0"
-gdb_test "p acp->c2" "\\(A \\*\\) 0xf+"
+gdb_test "p acp->c2" "\\(A \\*\\) ${hex}f"