1 // RUN: %clang_cc1 -triple thumbv6m -verify -fsyntax-only %s
2
3 // expected-warning@+1 {{unsupported 'branch-protection' in the 'target' attribute string; 'target' attribute ignored}}
f1(void)4 __attribute__((target("arch=cortex-m0,branch-protection=bti"))) void f1(void) {}
5
6 // expected-warning@+1 {{unsupported 'branch-protection' in the 'target' attribute string; 'target' attribute ignored}}
f2(void)7 __attribute__((target("arch=cortex-m0,branch-protection=pac-ret"))) void f2(void) {}
8
9 // expected-warning@+1 {{unsupported 'branch-protection' in the 'target' attribute string; 'target' attribute ignored}}
f3(void)10 __attribute__((target("arch=cortex-m0,branch-protection=bti+pac-ret"))) void f3(void) {}
11
12 // expected-warning@+1 {{unsupported 'branch-protection' in the 'target' attribute string; 'target' attribute ignored}}
f4(void)13 __attribute__((target("arch=cortex-m0,branch-protection=bti+pac-ret+leaf"))) void f4(void) {}
14
15 // expected-warning@+1 {{unsupported 'branch-protection' in the 'target' attribute string; 'target' attribute ignored}}
f5(void)16 __attribute__((target("arch=cortex-a17,thumb,branch-protection=bti+pac-ret+leaf"))) void f5(void) {}
17