binutils-gdb/gdb/testsuite/gdb.rust
Daniel Xu 0ed35c9ae0 rust: Fix rust modules test
I noticed that the modules test was failing. Some choice use of `nm`
revealed `TWENTY_THREE` was not in the final binary. Fix by taking a
pointer to the global, forcing the linker to keep the symbol in.

gdb/testsuite/ChangeLog
2020-07-11  Daniel Xu  <dxu@dxuuu.xyz>

	PR rust/26121
	* gdb.rust/modules.rs: Prevent linker from discarding test
	symbol.

Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
2020-07-11 16:08:28 -06:00
..
expr.exp
generics.exp
generics.rs
methods.exp
methods.rs
modules.exp
modules.rs rust: Fix rust modules test 2020-07-11 16:08:28 -06:00
rust-style.exp
rust-style.rs
simple.exp
simple.rs
traits.exp
traits.rs
union.exp
union.rs
unsized.exp
unsized.rs
watch.exp
watch.rs