-
Notifications
You must be signed in to change notification settings - Fork 42
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/1383' into 'master'
Add support for deep delta aggregates Closes #1383 See merge request eng/libadalang/libadalang!1657
- Loading branch information
Showing
17 changed files
with
1,581 additions
and
12 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
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
26 changes: 26 additions & 0 deletions
26
testsuite/tests/name_resolution/deep_delta_aggregates/arr.adb
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,26 @@ | ||
procedure Arr is | ||
|
||
type R is record | ||
F, G, H : Integer; | ||
end record; | ||
|
||
type My_Arr is array (Positive range <>) of R; | ||
|
||
procedure Test (X : in out My_Arr; I, J, K, L : Positive); | ||
|
||
procedure Test (X : in out My_Arr; I, J, K, L : Positive) is | ||
begin | ||
X := (X with delta | ||
(I).F => 1, | ||
(J).G => 2, | ||
(K).F => 3, | ||
(L).H => 4); | ||
pragma Test_Statement; | ||
|
||
X := ((if True then X else X) with delta (I).F => 4); | ||
pragma Test_Statement; | ||
end Test; | ||
|
||
begin | ||
null; | ||
end Arr; |
Oops, something went wrong.