]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Add a new regression test for issue 2665
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Mon, 23 Oct 2023 15:16:25 +0000 (17:16 +0200)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Mon, 23 Oct 2023 16:35:23 +0000 (16:35 +0000)
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 <pierre-emmanuel.patry@embecosm.com>
gcc/testsuite/rust/compile/issue-2665.rs [new file with mode: 0644]

diff --git a/gcc/testsuite/rust/compile/issue-2665.rs b/gcc/testsuite/rust/compile/issue-2665.rs
new file mode 100644 (file)
index 0000000..3ee8e7b
--- /dev/null
@@ -0,0 +1,6 @@
+fn main() {}
+
+#[cfg(FALSE)]
+impl X {
+    const Y: u8;
+}