From: Pierre-Emmanuel Patry Date: Mon, 23 Oct 2023 15:16:25 +0000 (+0200) Subject: gccrs: Add a new regression test for issue 2665 X-Git-Tag: basepoints/gcc-15~2065 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=973e962ee5ca29535d1b2b9838256553abe05f1d;p=thirdparty%2Fgcc.git gccrs: Add a new regression test for issue 2665 Highlight issue 2665's fix for const with no value expression. gcc/testsuite/ChangeLog: * rust/compile/issue-2665.rs: New test. Signed-off-by: Pierre-Emmanuel Patry --- diff --git a/gcc/testsuite/rust/compile/issue-2665.rs b/gcc/testsuite/rust/compile/issue-2665.rs new file mode 100644 index 000000000000..3ee8e7b22ca0 --- /dev/null +++ b/gcc/testsuite/rust/compile/issue-2665.rs @@ -0,0 +1,6 @@ +fn main() {} + +#[cfg(FALSE)] +impl X { + const Y: u8; +}