diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 212f2ae0c5b..d659ec4ed1a 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2021-04-16 Tom Tromey <tom@tromey.com> + + * gdb.rust/simple.exp: Add parens to 'as' test. + 2021-04-16 Simon Marchi <simon.marchi@efficios.com> * boards/simavr.exp: Set debug_flags. diff --git a/gdb/testsuite/gdb.rust/simple.exp b/gdb/testsuite/gdb.rust/simple.exp index 1e5994628c2..6d5cd319f41 100644 --- a/gdb/testsuite/gdb.rust/simple.exp +++ b/gdb/testsuite/gdb.rust/simple.exp @@ -88,7 +88,7 @@ gdb_test "print w\[2\] @ 2" " = \\\[3, 4\\\]" gdb_test "print w_ptr\[2\]" " = 3" gdb_test "print fromslice" " = 3" gdb_test "print slice\[0\]" " = 3" -gdb_test "print slice as &\[i32\]\[0\]" " = 3" +gdb_test "print (slice as &\[i32\])\[0\]" " = 3" gdb_test_sequence "ptype slice" "" { " = struct &\\\[i32\\\] \\{"