@@ -11,31 +11,31 @@ use minicore::*;
1111struct Wrapper < T > ( T ) ;
1212
1313struct Test < T : Copy > {
14- f1 : extern "C- cmse-nonsecure-call" fn <U : Copy >( U , u32 , u32 , u32 ) -> u64 ,
14+ f1 : extern "cmse-nonsecure-call" fn <U : Copy >( U , u32 , u32 , u32 ) -> u64 ,
1515 //~^ ERROR cannot find type `U` in this scope
1616 //~| ERROR function pointer types may not have generic parameters
17- f2 : extern "C- cmse-nonsecure-call" fn ( impl Copy , u32 , u32 , u32 ) -> u64 ,
17+ f2 : extern "cmse-nonsecure-call" fn ( impl Copy , u32 , u32 , u32 ) -> u64 ,
1818 //~^ ERROR `impl Trait` is not allowed in `fn` pointer parameters
19- f3 : extern "C- cmse-nonsecure-call" fn ( T , u32 , u32 , u32 ) -> u64 , //~ ERROR [E0798]
20- f4 : extern "C- cmse-nonsecure-call" fn ( Wrapper < T > , u32 , u32 , u32 ) -> u64 , //~ ERROR [E0798]
19+ f3 : extern "cmse-nonsecure-call" fn ( T , u32 , u32 , u32 ) -> u64 , //~ ERROR [E0798]
20+ f4 : extern "cmse-nonsecure-call" fn ( Wrapper < T > , u32 , u32 , u32 ) -> u64 , //~ ERROR [E0798]
2121}
2222
23- type WithReference = extern "C- cmse-nonsecure-call" fn ( & usize ) ;
23+ type WithReference = extern "cmse-nonsecure-call" fn ( & usize ) ;
2424
2525trait Trait { }
26- type WithTraitObject = extern "C- cmse-nonsecure-call" fn ( & dyn Trait ) -> & dyn Trait ;
27- //~^ ERROR return value of `"C- cmse-nonsecure-call"` function too large to pass via registers [E0798]
26+ type WithTraitObject = extern "cmse-nonsecure-call" fn ( & dyn Trait ) -> & dyn Trait ;
27+ //~^ ERROR return value of `"cmse-nonsecure-call"` function too large to pass via registers [E0798]
2828
2929type WithStaticTraitObject =
30- extern "C- cmse-nonsecure-call" fn ( & ' static dyn Trait ) -> & ' static dyn Trait ;
31- //~^ ERROR return value of `"C- cmse-nonsecure-call"` function too large to pass via registers [E0798]
30+ extern "cmse-nonsecure-call" fn ( & ' static dyn Trait ) -> & ' static dyn Trait ;
31+ //~^ ERROR return value of `"cmse-nonsecure-call"` function too large to pass via registers [E0798]
3232
3333#[ repr( transparent) ]
3434struct WrapperTransparent < ' a > ( & ' a dyn Trait ) ;
3535
3636type WithTransparentTraitObject =
37- extern "C- cmse-nonsecure-call" fn ( WrapperTransparent ) -> WrapperTransparent ;
38- //~^ ERROR return value of `"C- cmse-nonsecure-call"` function too large to pass via registers [E0798]
37+ extern "cmse-nonsecure-call" fn ( WrapperTransparent ) -> WrapperTransparent ;
38+ //~^ ERROR return value of `"cmse-nonsecure-call"` function too large to pass via registers [E0798]
3939
40- type WithVarArgs = extern "C- cmse-nonsecure-call" fn ( u32 , ...) ;
40+ type WithVarArgs = extern "cmse-nonsecure-call" fn ( u32 , ...) ;
4141//~^ ERROR C-variadic function must have a compatible calling convention, like `C`
0 commit comments