diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2024-09-26 22:51:17 +0200 |
---|---|---|
committer | P-E-P <32375388+P-E-P@users.noreply.github.com> | 2024-09-26 22:48:32 +0000 |
commit | e4394ac6ffcfa04ed0db1bc2bf5f458d1432766c (patch) | |
tree | ef6de6345d5238049bbb239d82977759c8729122 /gcc | |
parent | d87b067b2d2ce5f904cd0d1143a8920a686d0e36 (diff) | |
download | gcc-e4394ac6ffcfa04ed0db1bc2bf5f458d1432766c.zip gcc-e4394ac6ffcfa04ed0db1bc2bf5f458d1432766c.tar.gz gcc-e4394ac6ffcfa04ed0db1bc2bf5f458d1432766c.tar.bz2 |
This test requires the standard library
It requires the standard library and Copy to work correctly which we
cannot provide. Stopping the compiler before the name resolution allow us
to prevent an error whilst resolving Copy and keep the test's goal.
gcc/testsuite/ChangeLog:
* rust/compile/functions_without_body.rs: Add compile step argument.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/rust/compile/functions_without_body.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/functions_without_body.rs b/gcc/testsuite/rust/compile/functions_without_body.rs index 36ddea5..0a0e602 100644 --- a/gcc/testsuite/rust/compile/functions_without_body.rs +++ b/gcc/testsuite/rust/compile/functions_without_body.rs @@ -1,3 +1,4 @@ +// { dg-additional-options "-frust-compile-until=nameresolution" } struct MyStruct; trait X {} |