gdb
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.python / py-value.exp
index 13bce9a05efb1819723f0681c70aff97d6f6f2d7..0ecb57c66b06bbc4feafb450981fde749c7f7938 100644 (file)
@@ -379,6 +379,13 @@ proc test_subscript_regression {lang} {
      # the C++ tests.
      gdb_test "python print bool(gdb.parse_and_eval('base').dynamic_cast(gdb.lookup_type('Derived').pointer()))" \
         True
+
+     # Likewise.
+     gdb_test "python print gdb.parse_and_eval('base').dynamic_type" \
+        "Derived \[*\]"
+     # A static type case.
+     gdb_test "python print gdb.parse_and_eval('5').dynamic_type" \
+        "int"
  }
 
  gdb_breakpoint [gdb_get_line_number "break to inspect struct and union"]
This page took 0.023017 seconds and 4 git commands to generate.