aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-10-23 17:16:25 +0200
committerP-E-P <32375388+P-E-P@users.noreply.github.com>2023-10-23 16:35:23 +0000
commiteb393ac7a90b4b65fd3b0f66b666bf8b7c139c92 (patch)
tree1775a19a3ce9c0f17f12366cd99eb37536a84aba /gcc
parent4f0da0ec6e113402a6063fc0f8cc94b8692b450a (diff)
downloadgcc-eb393ac7a90b4b65fd3b0f66b666bf8b7c139c92.zip
gcc-eb393ac7a90b4b65fd3b0f66b666bf8b7c139c92.tar.gz
gcc-eb393ac7a90b4b65fd3b0f66b666bf8b7c139c92.tar.bz2
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 <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/rust/compile/issue-2665.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/issue-2665.rs b/gcc/testsuite/rust/compile/issue-2665.rs
new file mode 100644
index 0000000..3ee8e7b
--- /dev/null
+++ b/gcc/testsuite/rust/compile/issue-2665.rs
@@ -0,0 +1,6 @@
+fn main() {}
+
+#[cfg(FALSE)]
+impl X {
+ const Y: u8;
+}