// RUN: %clang_cc1 -triple thumbv8m.base-none-eabi -mcmse -Wno-strict-prototypes -verify %s
typedef void ;
typedef void ;
typedef void ;
typedef void ;
void
static void // expected-warning{{'cmse_nonsecure_entry' cannot be applied to functions with internal linkage}}
typedef void ;
extern nonsecure_fn_t baz; // expected-error{{functions may not be declared with 'cmse_nonsecure_call' attribute}}
int v0 ; // expected-warning {{'cmse_nonsecure_call' only applies to function types; type here is 'int'}}
int v1 ; // expected-warning {{'cmse_nonsecure_entry' attribute only applies to functions}}
void ;
void ; // expected-error {{'cmse_nonsecure_entry' attribute takes no arguments}}
typedef void ; // expected-error {{'cmse_nonsecure_call' attribute takes no argument}}
u;
;
;
s;
void