blob: a2d97d9b70c987980aa90c7344cf6ca603586822 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-require-alias "" } */
/* { dg-options "-O2 -fcf-protection" } */
/* { dg-final { scan-assembler-times {\mendbr} 2 } } */
extern int x;
static void
__attribute__ ((noinline, noclone))
test (int i)
{
x = i;
}
extern __typeof (test) foo __attribute__ ((alias ("test")));
void
bar (int i)
{
test (i);
}