2 // { dg-options "-O2 -fdump-tree-optimized -Wunused-function" }
3 // Check to see that unused functions get removed at -O2 and
5 static int foo (int bar);
6 static int baz (int aaa);
7 external_definition int ext (int bbb);
14 baz // { dg-warning "defined but not used" }
24 // { dg-final { scan-tree-dump-not "baz" "optimized" } }
25 // { dg-final { cleanup-tree-dump "optimized" } }