Skip to content
Snippets Groups Projects
Commit f60df7e6 authored by Philip Herron's avatar Philip Herron Committed by Arthur Cohen
Browse files

gccrs: Add link cases testsuite

This testsuite is heavily inspired from the LTO testsuite that uses a
pattern where each file is compiled to an object file and finally linked
together. Since Rust does not have headers/prototypes, we rely on the
ordering here so that all files numbered greater than zero get compiled to
object files first. This leaves the _0 file free to test the 'extern crate' and
'use' keywords to force testing of the compiler to read metadata from the
other 'crates'.

	gcc/testsuite/
	* rust/link/generic_function_0.rs: New.
	* rust/link/generic_function_1.rs: New.
	* rust/link/link.exp: New.
	* rust/link/simple_function_0.rs: New.
	* rust/link/simple_function_1.rs: New.
	* rust/link/trait_import_0.rs: New.
	* rust/link/trait_import_1.rs: New.
parent 4b8f3005
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment