binutils-gdb/gdb/testsuite/gdb.rust
Tom Tromey 3d1cfd43be Move Rust union tests to new file
I wanted to run the gdb.rust tests against older versions of the Rust
compiler, to ensure that changes I am making don't break debugging
when using older compilers.

However, this did not work because simple.rs now uses unchecked
unions, which were only added in Rust 1.19.

This patch splits the union code into its own file, so that simple.exp
can continue to work.  I tested this with selected rust versions back
to 1.12.

gdb/testsuite/ChangeLog
2020-04-01  Tom Tromey  <tromey@adacore.com>

	* gdb.rust/union.rs: New file.
	* gdb.rust/union.exp: New file.
	* gdb.rust/simple.rs (Union, Union2): Move to union.rs.
	(main): Update.
	* gdb.rust/simple.exp: Move union tests to union.exp.
2020-04-01 14:08:17 -06:00
..
expr.exp
generics.exp
generics.rs
methods.exp
methods.rs
modules.exp
modules.rs
rust-style.exp
rust-style.rs
simple.exp Move Rust union tests to new file 2020-04-01 14:08:17 -06:00
simple.rs Move Rust union tests to new file 2020-04-01 14:08:17 -06:00
traits.exp
traits.rs
union.exp Move Rust union tests to new file 2020-04-01 14:08:17 -06:00
union.rs Move Rust union tests to new file 2020-04-01 14:08:17 -06:00
unsized.exp
unsized.rs
watch.exp
watch.rs