gcc/testsuite/gcc.target/powerpc/no-r11-1.c
raw| 1 | /* { dg-do compile { target { powerpc*-*-* && lp64 } } } */ |
| 2 | /* { dg-skip-if "" { *-*-darwin* } } */ |
| 3 | /* { dg-skip-if "" { powerpc_elfv2 } } */ |
| 4 | /* { dg-options "-O2 -mno-pointers-to-nested-functions" } */ |
| 5 | |
| 6 | int |
| 7 | call_ptr (int (func) (void)) |
| 8 | { |
| 9 | return func () + 1; |
| 10 | } |
| 11 | |
| 12 | /* { dg-final { scan-assembler-not "ld 11,16(3)" } } */ |