[COMMITTED 22/77] gccrs: testsuite: Add regression test for Rust-GCC/gccrs#4116

[email protected]
Newsgroups gmane.comp.gcc.patches,gmane.comp.gcc.rust
Message-ID <[email protected]>
From: Arthur Cohen <[email protected]>

gcc/testsuite/ChangeLog:

	* rust/compile/issue-4116.rs: New test.
---
 gcc/testsuite/rust/compile/issue-4116.rs | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 gcc/testsuite/rust/compile/issue-4116.rs

diff --git a/gcc/testsuite/rust/compile/issue-4116.rs b/gcc/testsuite/rust/compile/issue-4116.rs
new file mode 100644
index 00000000000..2741a687197
--- /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) => {}
+        _ => {}
+    }
+}
-- 
2.50.1
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.