diff options
| -rw-r--r-- | gcc/ada/sem_prag.adb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ada/sem_prag.adb b/gcc/ada/sem_prag.adb index 8e36976..a46f52f 100644 --- a/gcc/ada/sem_prag.adb +++ b/gcc/ada/sem_prag.adb @@ -11437,6 +11437,12 @@ package body Sem_Prag is end if; end if; + -- Mark assertion pragmas as Ghost depending on their enclosing context + + if Assertion_Expression_Pragma (Prag_Id) then + Mark_Ghost_Pragma (N, Current_Scope); + end if; + -- Preset arguments Arg_Count := 0; |
