llvm-for-llvmta/tools/clang/test/Sema/arm-cmse-no-diag.c

12 lines
305 B
C
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -triple thumbv8m.base-none-eabi -mcmse -verify -Wno-cmse-union-leak %s
// expected-no-diagnostics
union U { unsigned n; char b[4]; } u;
void (*fn2)(int, union U) __attribute__((cmse_nonsecure_call));
union U xyzzy() __attribute__((cmse_nonsecure_entry)) {
fn2(0, u);
return u;
}