blob: db7eb8fc1fcd9a2ac5333c63c523a1315be6aec8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
fn test() -> i32 {
1
}
fn unused() -> i32 {
// { dg-warning "function is never used: 'unused'" "" { target *-*-* } .-1 }
2
}
fn main() {
let a = 1;
// { dg-warning "unused name" "" { target *-*-* } .-1 }
let b = test();
// { dg-warning "unused name" "" { target *-*-* } .-1 }
}
|