diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-10-23 17:16:25 +0200 |
---|---|---|
committer | P-E-P <32375388+P-E-P@users.noreply.github.com> | 2023-10-23 16:35:23 +0000 |
commit | eb393ac7a90b4b65fd3b0f66b666bf8b7c139c92 (patch) | |
tree | 1775a19a3ce9c0f17f12366cd99eb37536a84aba | |
parent | 4f0da0ec6e113402a6063fc0f8cc94b8692b450a (diff) | |
download | gcc-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>
-rw-r--r-- | gcc/testsuite/rust/compile/issue-2665.rs | 6 |
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; +} |