From: Pierre-Emmanuel Patry Date: Tue, 2 Sep 2025 19:28:00 +0000 (+0200) Subject: gccrs: Add test to confirm Rust-GCC/gccrs#3922 fix X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84baeaf6277aa135682aab2c5753705ddc6458be;p=thirdparty%2Fgcc.git gccrs: Add test to confirm Rust-GCC/gccrs#3922 fix gcc/testsuite/ChangeLog: * rust/compile/issue-3922.rs: New test. Signed-off-by: Pierre-Emmanuel Patry --- diff --git a/gcc/testsuite/rust/compile/issue-3922.rs b/gcc/testsuite/rust/compile/issue-3922.rs new file mode 100644 index 00000000000..3c07f94c295 --- /dev/null +++ b/gcc/testsuite/rust/compile/issue-3922.rs @@ -0,0 +1,12 @@ +struct S( + [u8; { + { + // { dg-error "mismatched types. expected .... but got ..integer.. .E0308." "" { target *-*-* } .-1 } + struct Z; + 0 + } + 0 + }], +); + +fn main() {}