1 // RUN: not %clang_cc1 -triple thumbv8m.base-eabi -fsyntax-only %s 2>&1 | FileCheck --check-prefix=CHECK-c %s
2 // RUN: not %clang_cc1 -triple thumbv8m.base-eabi -fsyntax-only -x c++ %s 2>&1 | FileCheck --check-prefix=CHECK-cpp %s
6 typedef void (*callback_t
)(void);
8 void func(callback_t fptr
, void *p
)
19 // CHECK-c: error: call to undeclared function 'cmse_TTA'
20 // CHECK-c: error: call to undeclared function 'cmse_TTAT'
21 // CHECK-c: error: call to undeclared function 'cmse_TTA_fptr'
22 // CHECK-c: error: call to undeclared function 'cmse_TTAT_fptr'
23 // CHECK-cpp: error: use of undeclared identifier 'cmse_TTA'
24 // CHECK-cpp: error: use of undeclared identifier 'cmse_TTAT'
25 // CHECK-cpp: error: use of undeclared identifier 'cmse_TTA_fptr'
26 // CHECK-cpp: error: use of undeclared identifier 'cmse_TTAT_fptr'