summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/sibcall-2.c
blob: 52cd307a484226d114eb84b7b4bd1fa4ce637c5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-require-effective-target arm_eabi } */
/* { 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" } } */