aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2024-09-26 22:51:17 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2025-03-19 15:32:15 +0100
commit6f8ca7f2516012326d2a68927543fff5e1a29611 (patch)
tree5e2b0b93f3cd19ed427d2d41a026e84bd11a1114 /gcc
parentfb7e607d2f72efd0047f35afab34d5073db2451a (diff)
downloadgcc-6f8ca7f2516012326d2a68927543fff5e1a29611.zip
gcc-6f8ca7f2516012326d2a68927543fff5e1a29611.tar.gz
gcc-6f8ca7f2516012326d2a68927543fff5e1a29611.tar.bz2
gccrs: 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.rs1
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 {}