[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Sema / arm-cmse-no-diag.c
blob24b41378340cea4c36fcb0e3b3b0d55dd4844b66
1 // RUN: %clang_cc1 -triple thumbv8m.base-none-eabi -mcmse -verify -Wno-cmse-union-leak %s
2 // expected-no-diagnostics
4 union U { unsigned n; char b[4]; } u;
6 void (*fn2)(int, union U) __attribute__((cmse_nonsecure_call));
8 union U xyzzy(void) __attribute__((cmse_nonsecure_entry)) {
9 fn2(0, u);
10 return u;