[RS6000] dg-do !compile and scan-assembler
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / no-r11-2.c
blobdc975591adf9ea33776acc4758ca39102fda22fa
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" } */
6 int
7 call_ptr (int (func) (void))
9 return func () + 1;
12 /* { dg-final { scan-assembler "ld 11,16" } } */