• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -triple thumbv8m.base-none-eabi -mcmse -verify -Wno-cmse-union-leak %s
2 // expected-no-diagnostics
3 
4 union U { unsigned n; char b[4]; } u;
5 
6 void (*fn2)(int, union U) __attribute__((cmse_nonsecure_call));
7 
xyzzy()8 union U xyzzy() __attribute__((cmse_nonsecure_entry)) {
9   fn2(0, u);
10   return u;
11 }
12