blob: e5869e86c449aef5606541c4c7a51069a1426793 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -mbranch-protection=bti" } */
char *foo (const char *s, const int c)
{
const char *p = 0;
for (;;)
{
if (*s == c)
p = s;
if (p != 0 || *s++ == 0)
break;
}
return (char *)p;
}
/* { dg-final { scan-assembler "hint\t34" } } */