-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'topic/1113' into 'master'
Fix Old AttributeRef's designated environment Closes #1113 See merge request eng/libadalang/libadalang!1436
- Loading branch information
Showing
5 changed files
with
103 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package body Test is | ||
|
||
procedure Event_Occurred (Event : in out Event_Record) is null; | ||
|
||
function Count1 (Event : in Event_Record) return Integer is (1); | ||
function Count2 (Event : in Event_Record) return Integer is (1); | ||
|
||
end Test; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package Test is | ||
|
||
type Event_Record is tagged private; | ||
|
||
procedure Event_Occurred (Event : in out Event_Record) | ||
with Post => Event.Count1 = Event'Old.Count2 + 1; | ||
pragma Test_Block; | ||
|
||
function Count1 (Event : in Event_Record) return Integer; | ||
function Count2 (Event : in Event_Record) return Integer; | ||
|
||
private | ||
|
||
type Event_Record is tagged record | ||
Id : Integer := 0; | ||
No_Of_Occurrences : Integer := 0; | ||
end record; | ||
|
||
end Test; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
driver: name-resolution | ||
input_sources: [inc.adb] | ||
input_sources: [inc.adb, test.ads] |