Expose type alignment on gdb.Type
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.python / py-type.exp
index b87e86cdf6a3470d8c86c03757edb56d065c12c2..8fe02216c747e74a4cd9867ae9ee4bb4edac6da2 100644 (file)
@@ -278,6 +278,10 @@ if { [build_inferior "${binfile}" "c"] == 0 } {
   gdb_test "python print(gdb.lookup_type('int').optimized_out())" \
       "<optimized out>"
 
+  set sint [get_sizeof int 0]
+  gdb_test "python print(gdb.parse_and_eval('aligncheck').type.alignof)" \
+      $sint
+
   with_test_prefix "lang_c" {
       runto_bp "break to inspect struct and array."
       test_fields "c"
This page took 0.026065 seconds and 4 git commands to generate.