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

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