]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: 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)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:09:25 +0000 (19:09 +0100)
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;
+}