1 /* { dg-do compile } */
2 /* { dg-options "-fdump-tree-optimized" } */
3 
foo(void)4 void foo (void)
5 {
6   int a;
7 
8   void bar (void)
9   {
10     a = 1;
11   }
12 }
13 
14 /* { dg-final { scan-tree-dump-not "bar" "optimized" } } */
15 /* { dg-final { cleanup-tree-dump "optimized" } } */
16