Add gdb.Type.optimized_out method.
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.python / py-type.exp
index 9e522f23221d5d80518c53fc6f521c94d2ca9280..58a2394da70ccba3909f6231600ef758b0bf40f7 100644 (file)
@@ -253,6 +253,9 @@ gdb_test "python print(gdb.lookup_type('char').array(1, 0))" \
 gdb_test "python print(gdb.lookup_type('char').array(1, -1))" \
     "Array length must not be negative.*"
 
+gdb_test "python print(gdb.lookup_type('int').optimized_out())" \
+    "<optimized out>"
+
 with_test_prefix "lang_c" {
     runto_bp "break to inspect struct and array."
     test_fields "c"
This page took 0.025278 seconds and 4 git commands to generate.