diff --git a/gdb/testsuite/gdb.ada/same_enum.exp b/gdb/testsuite/gdb.ada/same_enum.exp index e476c271338..92620d1fbe2 100644 --- a/gdb/testsuite/gdb.ada/same_enum.exp +++ b/gdb/testsuite/gdb.ada/same_enum.exp @@ -32,4 +32,6 @@ clean_restart ${testfile} # it's because the two types are strongly related). gdb_test "print red" "= red" - +# Check that both types are in fact present. +gdb_test "ptype Color " "^type = .*" +gdb_test "ptype RGB_Color" "^type = .*" diff --git a/gdb/testsuite/gdb.ada/same_enum/a.adb b/gdb/testsuite/gdb.ada/same_enum/a.adb index ef2cceb3e60..4612aaa7283 100644 --- a/gdb/testsuite/gdb.ada/same_enum/a.adb +++ b/gdb/testsuite/gdb.ada/same_enum/a.adb @@ -17,7 +17,7 @@ with Pck; use Pck; procedure A is FC : Color := Red; - SC : Color := Green; + SC : RGB_Color := Green; begin Do_Nothing (FC'Address); Do_Nothing (SC'Address);