summaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/torture/unary_operators.rs
blob: 9be729c04e37b102f91eac0a3334152b7fb0b81f (plain)
1
2
3
4
5
6
7
8
// { dg-prune-output "warning: unused name" } as there are many of these expected.

fn main() {
    let a: i32 = -1;
    let b: i32 = 3 - -1;
    let c: bool = !false;
    let d: i32 = !3;
}