Skip to content

Commit 3d11639

Browse files
VillosseP-E-P
authored andcommitted
testsuite: Adds test from issue
As the issue as been resolved, i just added the test from the issue. Fixes #1081 gcc/testsuite/ChangeLog: * rust/compile/issue-1081.rs: New test. Signed-off-by: lenny.chiadmi-delage <[email protected]>
1 parent 6f92d79 commit 3d11639

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// { dg-additional-options "-w" }
2+
enum Foo {
3+
A,
4+
B,
5+
}
6+
7+
fn inspect(f: Foo, g: u8) {
8+
match (f, g) {
9+
(Foo::A, 1) => {}
10+
(Foo::B, 2) => {}
11+
_ => {}
12+
}
13+
}

0 commit comments

Comments
 (0)