aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/enum_discriminant1.rs
blob: 32092b2c2a5b268cdb81253204f31fb0c5773090 (plain)
1
2
3
4
5
6
7
enum Foo {
    Bar = 3 + 12,
}

fn test() -> Foo { // { dg-warning "function is never used" }
    return Foo::Bar;
}