Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / treelang / compile / extrafunc.tree
blob30827a79dacfabdeab77f745836f05b26abbd12e
1 // { dg-do compile }
2 // { dg-options "-O2 -fdump-tree-optimized -Wunused-function" }
3 // Check to see that unused functions get removed at -O2 and
4 // above.
5 static int foo (int bar);
6 static int baz (int aaa);
7 external_definition int ext (int bbb);
9 foo
11         return bar;
14 baz // { dg-warning "defined but not used" }
16         return foo (aaa);
19 ext
21         return foo (bbb);
24 // { dg-final { scan-tree-dump-not "baz" "optimized" } }
25 // { dg-final { cleanup-tree-dump "optimized" } }