From: Pierre-Emmanuel Patry Date: Wed, 4 Sep 2024 15:13:04 +0000 (+0200) Subject: gccrs: Move failing test to xfail X-Git-Tag: basepoints/gcc-16~1146 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2aed733f113a2bea5bb2f92e78d978dd90b50afc;p=thirdparty%2Fgcc.git gccrs: Move failing test to xfail We want to begin experimenting with this new name resolution 2.0 algorithm as soon as possible. This test highlight a problem where the compiler should emit an error and should be fixed soon. gcc/testsuite/ChangeLog: * rust/compile/name_resolution21.rs: Move to... * rust/compile/xfail/name_resolution21.rs: ...here. Signed-off-by: Pierre-Emmanuel Patry --- diff --git a/gcc/testsuite/rust/compile/name_resolution21.rs b/gcc/testsuite/rust/compile/xfail/name_resolution21.rs similarity index 62% rename from gcc/testsuite/rust/compile/name_resolution21.rs rename to gcc/testsuite/rust/compile/xfail/name_resolution21.rs index 3d0af2b37b76..df48d0015987 100644 --- a/gcc/testsuite/rust/compile/name_resolution21.rs +++ b/gcc/testsuite/rust/compile/xfail/name_resolution21.rs @@ -5,7 +5,8 @@ pub mod foo { } use foo::bar; -use foo::bar; // { dg-error ".bar. defined multiple times" } +use foo::bar; +// { dg-error ".bar. defined multiple times" "" { xfail *-*-* } .-1 } fn main() { bar!();