]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.python/py-prettyprint.exp
Allow pretty-print of static members
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.python / py-prettyprint.exp
index b7661ff14ed0136c0d579c353ceeb67054bcf96d..05507cba9c9712c10062b67bb9e7ed36e3ad60c6 100644 (file)
@@ -82,6 +82,11 @@ proc run_lang_tests {exefile lang} {
        gdb_test "print ns" "embedded\\\\000n\.\.\.." \
            "print ns with element limit of 10"
        gdb_test_no_output "set print elements 200"
+
+       gdb_test "print has_member" \
+           "=  a=<23> b=<$hex <has_static_member::global>>.*"
+       gdb_test "print has_static_member::global" \
+           "=  a=<23> b=<$hex <has_static_member::global>>"
     }
 
     if { ![is_address_zero_readable] } {