diff options
author | Philip Herron <philip.herron@embecosm.com> | 2022-08-23 16:00:51 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-12-13 14:00:03 +0100 |
commit | f60df7e6202300b25739b30b9e7430c0be22eb9f (patch) | |
tree | ee0ff858c4e3851726c92ad2d5e813bedddadfc1 /gcc/testsuite/rust/compile/arrays2.rs | |
parent | 4b8f3005af0ddfd409f43e671b817f846e3c47e4 (diff) | |
download | gcc-f60df7e6202300b25739b30b9e7430c0be22eb9f.zip gcc-f60df7e6202300b25739b30b9e7430c0be22eb9f.tar.gz gcc-f60df7e6202300b25739b30b9e7430c0be22eb9f.tar.bz2 |
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.
Diffstat (limited to 'gcc/testsuite/rust/compile/arrays2.rs')
0 files changed, 0 insertions, 0 deletions