brintos

brintos / llvm-project-archived public Read only

0
0
Text · 279 B · dbf97e2 Raw
6 lines · cpp
1// RUN: %clang_cc1 -triple thumbv8m.base-none-eabi -mcmse -verify %s2 3extern "C" void foo() __attribute__((cmse_nonsecure_entry)) {}4 5void bar() __attribute__((cmse_nonsecure_entry)) {} // expected-error{{function type with 'cmse_nonsecure_entry' attribute must have C linkage}}6