Message ID | 20110829082209.GA13955@adacore.com |
---|---|
State | New |
Headers | show |
Index: sem_prag.adb =================================================================== --- sem_prag.adb (revision 178155) +++ sem_prag.adb (working copy) @@ -1884,6 +1884,15 @@ -- See if it is in the pragmas after a library level subprogram elsif Nkind (Parent (N)) = N_Compilation_Unit_Aux then + + -- In formal verification mode, analyze pragma expression for + -- correctness, as it is not expanded later. + + if ALFA_Mode then + Analyze_PPC_In_Decl_Part + (N, Defining_Entity (Unit (Parent (Parent (N))))); + end if; + Chain_PPC (Unit (Parent (Parent (N)))); return; end if;