view gcc/testsuite/gcc.target/i386/pr94417-3.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 2b5abeee2509
children
line wrap: on
line source

/* { dg-do compile } */
/* { dg-options "-O2 -fcf-protection -mforce-indirect-call" } */
/* { dg-final { scan-assembler-times {\mendbr} 2 } } */

extern void ext (void);

__attribute((noclone, noinline))
static
void
foo (void)
{
  ext ();
}

void
bar (void)
{
  foo ();
}