Debian Codegraph @

gcc/testsuite/rust/compile/torture/match1.rs

raw
1 // { dg-additional-options "-w" }
2 enum Foo {
3 A,
4 B,
5 C(char),
6 D { x: i64, y: i64 },
7 }
8
9 fn inspect(f: Foo) {
10 match f {
11 Foo::A => {}
12 Foo::B => {}
13 Foo::C(x) => {}
14 Foo::D { x, y } => {}
15 }
16 }