mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-11 13:02:10 +08:00
Fix syntax error in Rust test
The Rust test case simple.exp does: print slice as &[i32][0] However, this is a syntax error in Rust. Parens are needed around the "as". gdb/testsuite/ChangeLog 2021-04-16 Tom Tromey <tom@tromey.com> * gdb.rust/simple.exp: Add parens to 'as' test.
This commit is contained in:
parent
321d0cd7e7
commit
458620aabb
@ -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.
|
||||
|
@ -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\\\] \\{"
|
||||
|
Loading…
Reference in New Issue
Block a user