[COMMITTED 22/77] gccrs: testsuite: Add regression test for Rust-GCC/gccrs#4116
arthur.cohen@embecosm.com
arthur.cohen@embecosm.com
Fri Aug 7 12:39:13 GMT 2026
From: Arthur Cohen <arthur.cohen@embecosm.com>
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
More information about the Gcc-rust
mailing list