From: 0xllx0 Date: Tue, 30 Sep 2025 15:17:24 +0000 (+0000) Subject: gccrs: test: add a regression test for issue Rust-GCC/gccrs#4145 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a773d3ed64ae49390cca1466d0429c9ecf675a5;p=thirdparty%2Fgcc.git gccrs: test: add a regression test for issue Rust-GCC/gccrs#4145 gcc/testsuite/ChangeLog: * rust/compile/issue-4145.rs: New test. Signed-off-by: Elle Rhumsaa --- diff --git a/gcc/testsuite/rust/compile/issue-4145.rs b/gcc/testsuite/rust/compile/issue-4145.rs new file mode 100644 index 00000000000..98b33cade11 --- /dev/null +++ b/gcc/testsuite/rust/compile/issue-4145.rs @@ -0,0 +1,13 @@ +// { dg-excess-errors "warnings" } + +struct S { + field: [u8; { + #[path = "outer/inner.rs"] + // { dg-warning "error handling module file for .inner." "#4145" { xfail *-*-* } .+1 } + mod inner; + // OK + 0 + }], +} + +fn main() {}