Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Headers / arm-cmse-header.c
blob862572d8adcd98fd9d4d3b8ad3cb30b32ae89639
1 // RUN: %clang_cc1 -triple thumbv8m.base-eabi -fsyntax-only -ffreestanding %s -verify -mcmse
2 // RUN: %clang_cc1 -triple thumbv8m.base-eabi -fsyntax-only -ffreestanding -x c++ %s -verify -mcmse
3 // expected-no-diagnostics
5 #include <arm_cmse.h>
7 typedef void (*callback_t)(void);
9 void func(callback_t fptr, void *p)
11 cmse_TT(p);
12 cmse_TTT(p);
13 cmse_TTA(p);
14 cmse_TTAT(p);
16 cmse_TT_fptr(fptr);
17 cmse_TTT_fptr(fptr);
18 cmse_TTA_fptr(fptr);
19 cmse_TTAT_fptr(fptr);