summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/nested-func-5.c
blob: 591f8a2c1a9930d23bd19689f8114e7aa0611108 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-fexceptions" } */
/* PR28516: ICE generating ARM unwind directives for nested functions.  */
/* { dg-require-effective-target trampolines } */
/* { dg-require-effective-target exceptions } */

void ex(int (*)(void));
void foo(int i)
{
  int bar(void)
  {
    return i;
  }
  ex(bar);
}