12 lines · c
1// RUN: %clang_cc1 -triple thumbv8m.base-none-eabi -mcmse -verify -Wno-cmse-union-leak %s2// expected-no-diagnostics3 4union U { unsigned n; char b[4]; } u;5 6void (*fn2)(int, union U) __attribute__((cmse_nonsecure_call));7 8union U xyzzy(void) __attribute__((cmse_nonsecure_entry)) {9 fn2(0, u);10 return u;11}12