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

extern void abort(void);

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

  bar();
}

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