1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mbranch-protection=bti" } */
3
4 char *foo (const char *s, const int c)
5 {
6 const char *p = 0;
7 for (;;)
8 {
9 if (*s == c)
10 p = s;
11 if (p != 0 || *s++ == 0)
12 break;
13 }
14 return (char *)p;
15 }
16
17 /* { dg-final { scan-assembler "hint\t34" } } */