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