From: Arthur Cohen <[email protected]>
gcc/testsuite/ChangeLog:
* rust/compile/issue-4116.rs: New test.
---
This change was merged into the gccrs repository and is posted here for
upstream visibility and potential drive-by review, as requested by GCC
release managers.
Each commit email contains a link to its details on github from where you can
find the Pull-Request and associated discussions.
Commit on github:
https://github.com/Rust-GCC/gccrs/commit/5d0183e3b1be74428be76cf99ba2f43d21f9c191
The commit has been mentioned in the following issue(s):
- Rust-GCC/gccrs#4116: https://github.com/Rust-GCC/gccrs/issues/4116
The commit has been mentioned in the following pull-request(s):
- https://github.com/Rust-GCC/gccrs/pull/4691
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 000000000..2741a6871
--- /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) => {}
+ _ => {}
+ }
+}
base-commit: f7a192fff40f141647752a7d5c8c0fae0c122d29
--
2.54.0