[gcc r17-3080] gccrs: testsuite: Add regression test for Rust-GCC/gccrs#4116

Arthur Cohen via Gcc-cvs <[email protected]>
Newsgroups gmane.comp.gcc.cvs
Message-ID <[email protected]>
https://gcc.gnu.org/g:fb133ead1c29ab3f60e2c9797ff61426e141e59b

commit r17-3080-gfb133ead1c29ab3f60e2c9797ff61426e141e59b
Author: Arthur Cohen <[email protected]>
Date:   Tue Jul 7 17:53:21 2026 +0200

    gccrs: testsuite: Add regression test for Rust-GCC/gccrs#4116
    
    gcc/testsuite/ChangeLog:
    
            * rust/compile/issue-4116.rs: New test.

Diff:
---
 gcc/testsuite/rust/compile/issue-4116.rs | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/gcc/testsuite/rust/compile/issue-4116.rs b/gcc/testsuite/rust/compile/issue-4116.rs
new file mode 100644
index 000000000000..2741a6871977
--- /dev/null
+++ b/gcc/testsuite/rust/compile/issue-4116.rs
@@ -0,0 +1,19 @@
+#![feature(no_core)]
+#![no_core]
+
+enum Foo {
+    Relaxed,
+    SeqCst,
+    StressedOut,
+}
+
+use Foo::{Relaxed, SeqCst, StressedOut};
+
+fn main() {
+    let a = (Relaxed, Relaxed);
+
+    match a {
+        (Relaxed, Relaxed) => {}
+        _ => {}
+    }
+}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.