1 /* { dg-do compile } */
2 /* { dg-skip-if "need at least armv5" { *-*-* } { "-march=armv[234]*" } { "" } } */
3 /* { dg-skip-if "FDPIC does not support armv5te" { arm*-*-uclinuxfdpiceabi } "*" "" } */
4 /* { dg-require-effective-target arm_arch_v5te_ok } */
5 /* { dg-options "-O2" }  */
6 /* { dg-add-options arm_arch_v5te } */
7 /* { dg-final { scan-assembler "blx" } } */
8 
9 int (*indirect_func)(int x);
10 
indirect_call()11 int indirect_call()
12 {
13   return indirect_func(20) + indirect_func (40);
14 }
15