1/* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
2/* { dg-skip-if "" { *-*-darwin* } { "*" } { "" } } */
3/* { dg-skip-if "" { powerpc_elfv2 } { "*" } { "" } } */
4/* { dg-options "-O2 -mpointers-to-nested-functions" } */
5
6int
7call_ptr (int (func) (void))
8{
9  return func () + 1;
10}
11
12/* { dg-final { scan-assembler "ld 11,16" } } */
13