-
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/1247' into 'master'
Make BaseFormalParamDecl.decl_param supports AcceptStmt parameters Closes #1247 See merge request eng/libadalang/libadalang!1523
- Loading branch information
Showing
5 changed files
with
51 additions
and
3 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
4 changes: 4 additions & 0 deletions
4
testsuite/tests/name_resolution/gnat_compare_entry_param/prj.gpr
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,4 @@ | ||
project Prj is | ||
for Source_Dirs use ("."); | ||
for Main use ("test.adb"); | ||
end Prj; |
17 changes: 17 additions & 0 deletions
17
testsuite/tests/name_resolution/gnat_compare_entry_param/test.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,17 @@ | ||
procedure Test is | ||
task T is | ||
entry E (C1 : Integer; C2 : Boolean); | ||
end T; | ||
|
||
task body T is | ||
X : Integer; | ||
begin | ||
accept E (C1 : Integer; C2 : Boolean) do | ||
if C2 then | ||
X := C1; | ||
end if; | ||
end E; | ||
end T; | ||
begin | ||
null; | ||
end Test; |
21 changes: 21 additions & 0 deletions
21
testsuite/tests/name_resolution/gnat_compare_entry_param/test.out
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,21 @@ | ||
== test.adb == | ||
test.adb:1:11 => test.adb:1:11 (LAL: ok) | ||
test.adb:3:16 => test.adb:3:13 (LAL: ok) | ||
test.adb:3:30 => test.adb:3:13 (LAL: ok) | ||
test.adb:6:14 => test.adb:2:9 (LAL: ok) | ||
test.adb:9:14 => test.adb:3:13 (LAL: ok) | ||
test.adb:10:13 => test.adb:3:30 (LAL: ok) | ||
test.adb:11:13 => test.adb:7:7 (LAL: ok) | ||
test.adb:11:18 => test.adb:3:16 (LAL: ok) | ||
test.adb:13:11 => test.adb:3:13 (LAL: ok) | ||
test.adb:14:8 => test.adb:2:9 (LAL: ok) | ||
test.adb:17:5 => test.adb:1:11 (LAL: ok) | ||
|
||
Stats: | ||
GNAT xrefs have 11 entries | ||
LAL xrefs have: | ||
* 11 OK entries (100.00%) | ||
* 0 DIFFERENT entries (0.00%) | ||
* 0 ERROR entries (0.00%) | ||
* 0 MISSING entries (0.00%) | ||
* 0 ADDITIONAL entries (0.00%) |
2 changes: 2 additions & 0 deletions
2
testsuite/tests/name_resolution/gnat_compare_entry_param/test.yaml
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,2 @@ | ||
driver: gnat-compare | ||
project_file: prj.gpr |