Debian Codegraph @

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

raw
1 // { dg-warning "function is never used: 'bar'" "" { target *-*-* } .+1 }
2 fn bar() {
3 foo();
4 }
5
6 // { dg-warning "function is never used: 'foo'" "" { target *-*-* } .+1 }
7 fn foo() {
8 bar();
9 }
10
11 fn f() {
12
13 }
14
15 fn main() {
16 f();
17 }