bolt/deps/llvm-18.1.8/clang/test/SemaCXX/arm-cmse.cpp
2025-02-14 19:21:04 +01:00

5 lines
279 B
C++

// RUN: %clang_cc1 -triple thumbv8m.base-none-eabi -mcmse -verify %s
extern "C" void foo() __attribute__((cmse_nonsecure_entry)) {}
void bar() __attribute__((cmse_nonsecure_entry)) {} // expected-error{{function type with 'cmse_nonsecure_entry' attribute must have C linkage}}