diff options
-rw-r--r-- | gcc/ada/sem_warn.adb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/ada/sem_warn.adb b/gcc/ada/sem_warn.adb index 8317b44..54d8920 100644 --- a/gcc/ada/sem_warn.adb +++ b/gcc/ada/sem_warn.adb @@ -1973,6 +1973,8 @@ package body Sem_Warn is begin Nod := Parent (N); while Present (Nod) loop + -- General contract / predicate related pragma + if Nkind (Nod) = N_Pragma and then Pragma_Name_Unmapped (Nod) @@ -1992,6 +1994,8 @@ package body Sem_Warn is then return True; + -- Deal with special 'Ensures' Test_Case component + elsif Present (Parent (Nod)) then P := Parent (Nod); |