brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 864bff9 Raw
17 lines · c
1// RUN: %clang_cc1 -triple thumbv6m -verify -fsyntax-only %s2 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) {}17