summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/nested-func-7.c
blob: 764beb453735fcfee09bba54e5f93ea7cc39aa40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-fdump-tree-optimized" } */

void foo (void)
{
  int a;

  void bar (void)
  {
    a = 1;
  }
}

/* { dg-final { scan-tree-dump-not "bar" "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */