summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/sibcall-2.c
blob: 921c0f30284bb77f522f77c089628b950098a3da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-require-effective-target arm_eabi } */
/* { dg-do compile } */
/* { dg-options "-O2 -mabi=aapcs" } */


extern void __attribute__((weak)) wfunc(void);
void main(void)
{
  wfunc();  /* Must not tail-call.  */
}

/* { dg-final { scan-assembler-not "b\[\\t \]+wfunc" } } */