mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-22 07:53:36 +08:00
Fix a small bug in gdb.rust/simple.rs
I noticed that gdb.rust/simple.rs had two local variables named "v". This didn't previous cause problems, but with a newer rust compiler this resulted in a test failure. (It should have failed all along, so I suppose earlier passes were due to a compiler bug.) This patch renames the second variable. gdb/testsuite/ChangeLog 2018-08-31 Tom Tromey <tom@tromey.com> * gdb.rust/simple.rs: Rename second variable "v".
This commit is contained in:
parent
0c8885885a
commit
aef9346c25
@ -1,3 +1,7 @@
|
|||||||
|
2018-08-31 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
|
* gdb.rust/simple.rs: Rename second variable "v".
|
||||||
|
|
||||||
2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
|
2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
|
||||||
|
|
||||||
* gdb.base/funcargs.c (use_a): New function.
|
* gdb.base/funcargs.c (use_a): New function.
|
||||||
|
@ -166,7 +166,7 @@ fn main () {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let u = Union { f2: 255 };
|
let u = Union { f2: 255 };
|
||||||
let v = SimpleLayout { f1: 8, f2: 9 };
|
let simplelayout = SimpleLayout { f1: 8, f2: 9 };
|
||||||
|
|
||||||
println!("{}, {}", x.0, x.1); // set breakpoint here
|
println!("{}, {}", x.0, x.1); // set breakpoint here
|
||||||
println!("{}", diff2(92, 45));
|
println!("{}", diff2(92, 45));
|
||||||
|
Loading…
Reference in New Issue
Block a user