-
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/1260' into 'master'
gnat_xref: add support for deferred constants Closes #1260 See merge request eng/libadalang/libadalang!1527
- Loading branch information
Showing
5 changed files
with
36 additions
and
0 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_xref_deferred_constants/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; |
9 changes: 9 additions & 0 deletions
9
testsuite/tests/name_resolution/gnat_xref_deferred_constants/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,9 @@ | ||
procedure Test is | ||
package P is | ||
U, V : constant Integer; | ||
private | ||
U, V : constant Integer := 1; | ||
end P; | ||
begin | ||
null; | ||
end Test; |
15 changes: 15 additions & 0 deletions
15
testsuite/tests/name_resolution/gnat_xref_deferred_constants/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,15 @@ | ||
== test.adb == | ||
test.adb:1:11 => test.adb:1:11 (LAL: ok) | ||
test.adb:5:7 => test.adb:3:7 (LAL: ok) | ||
test.adb:5:10 => test.adb:3:10 (LAL: ok) | ||
test.adb:6:8 => test.adb:2:12 (LAL: ok) | ||
test.adb:9:5 => test.adb:1:11 (LAL: ok) | ||
|
||
Stats: | ||
GNAT xrefs have 5 entries | ||
LAL xrefs have: | ||
* 5 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_xref_deferred_constants/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 |