blob: 4e4c7b078fbfc8976e26f8537769ac412a90b0ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// { dg-do compile }
// { dg-options "-fdump-tree-vars -O1 -Wunused-variable" }
external_definition int bar (int aaa, int ddd);
static int foo = -3; // { dg-warning "defined but not used" }
bar
{
automatic int ccc;
return aaa + ddd + +3;
}
// { dg-final { scan-tree-dump-not "ccc" "vars" } }
// { dg-final { cleanup-tree-dump "vars" } }
|