xref: /llvm-project/clang/test/SemaCXX/arm-cmse.cpp (revision 080d046c91d26bd3b0afba817cf5c2f99d1288ff)
1 // RUN: %clang_cc1 -triple thumbv8m.base-none-eabi -mcmse -verify %s
2 
foo()3 extern "C" void foo() __attribute__((cmse_nonsecure_entry)) {}
4 
bar()5 void bar() __attribute__((cmse_nonsecure_entry)) {} // expected-error{{function type with 'cmse_nonsecure_entry' attribute must have C linkage}}
6