-- Subsidiary to the analysis of pragmas Contract_Cases, Postcondition,
-- Precondition, Refined_Post, and Test_Case. Emit a warning when pragma
-- Prag is associated with subprogram Spec_Id subject to Inline_Always,
- -- and assertions are enabled.
+ -- assertions are enabled and inling is done in the frontend.
procedure Check_State_And_Constituent_Use
(States : Elist_Id;
if Warn_On_Redundant_Constructs
and then Has_Pragma_Inline_Always (Spec_Id)
and then Assertions_Enabled
+ and then not Back_End_Inlining
then
Error_Msg_Name_1 := Original_Aspect_Pragma_Name (Prag);