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