Debian Codegraph @

clang/test/Sema/arm-branch-protection-attr-warn.c

raw
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}}
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}}
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}}
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}}
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}}
16 __attribute__((target("arch=cortex-a17,thumb,branch-protection=bti+pac-ret+leaf"))) void f5(void) {}