-
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/1424' into 'master'
Various fixes for DeepBlue codebase name resolution Closes #1424 See merge request eng/libadalang/libadalang!1719
- Loading branch information
Showing
17 changed files
with
440 additions
and
60 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
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 @@ | ||
procedure Test is | ||
type Database is tagged null record; | ||
|
||
type Connection (D : access Database) is tagged null record | ||
with Implicit_Dereference => D; | ||
|
||
subtype Sub_Connection is Connection; | ||
|
||
function Get (DB : Database'Class) return Boolean is (True); | ||
|
||
procedure P (DB : Sub_Connection) is | ||
B : Boolean := Get (DB); | ||
pragma Test_Statement; | ||
begin | ||
null; | ||
end P; | ||
begin | ||
null; | ||
end; |
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,25 @@ | ||
Analyzing test.adb | ||
################## | ||
|
||
Resolving xrefs for node <ObjectDecl ["B"] test.adb:12:7-12:31> | ||
*************************************************************** | ||
|
||
Expr: <Id "Boolean" test.adb:12:11-12:18> | ||
references: <DefiningName "Boolean" __standard:3:8-3:15> | ||
type: None | ||
expected type: None | ||
Expr: <CallExpr test.adb:12:22-12:30> | ||
references: <DefiningName "Get" test.adb:9:13-9:16> | ||
type: <ConcreteTypeDecl ["Boolean"] __standard:3:3-3:33> | ||
expected type: <ConcreteTypeDecl ["Boolean"] __standard:3:3-3:33> | ||
Expr: <Id "Get" test.adb:12:22-12:25> | ||
references: <DefiningName "Get" test.adb:9:13-9:16> | ||
type: <ConcreteTypeDecl ["Boolean"] __standard:3:3-3:33> | ||
expected type: None | ||
Expr: <Id "DB" test.adb:12:27-12:29> | ||
references: <DefiningName "DB" test.adb:11:17-11:19> | ||
type: <SubtypeDecl ["Sub_Connection"] test.adb:7:4-7:41> | ||
expected type: <ClasswideTypeDecl ["Database"] test.adb:2:4-2:40> | ||
|
||
|
||
Done. |
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: name-resolution | ||
input_sources: [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
Oops, something went wrong.