blob: 9eb0f5b2141d5c60c69da8fbe84ae4516fd2b191 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-require-effective-target lp64 } */
/* { dg-require-effective-target fpic } */
/* { dg-options "-O2 -fpic -mcmodel=large -fcf-protection" } */
/* { dg-final { scan-assembler-times {\mendbr} 2 } } */
extern void ext (void);
__attribute((noclone, noinline))
static
void
foo (void)
{
ext ();
}
void
bar (void)
{
foo ();
}