aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/nested-func-4.c
blob: 5a17f7895314bf541883d24f506a4da3491eb8fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do run } */
/* { dg-options "-pg" } */

extern void abort(void);

void foo(int i)
{
  void bar(void)
  {
    if (i != 2)
      abort ();
  }

  bar();
}

int main(void)
{
  foo (2);
  return 0;
}