-
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/1082' into 'master'
Better support of Entry Calls name resolution Closes #1082 See merge request eng/libadalang/libadalang!1418
- Loading branch information
Showing
4 changed files
with
172 additions
and
30 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,38 @@ | ||
procedure Test is | ||
|
||
type Enume is (S, P, A, R, K); | ||
|
||
task type TT is | ||
entry F (1 .. 3) (I : Integer; J : out Integer); | ||
entry G (Enume) (I : Integer; J : out Integer); | ||
end TT; | ||
|
||
type Parent is access TT; | ||
type T is new Parent; | ||
|
||
X : T; | ||
I : Integer := 0; | ||
J : Integer := 0; | ||
|
||
task body TT is | ||
N : Integer := 1; | ||
begin | ||
loop | ||
select | ||
accept F (2) (I : Integer; J : out Integer) do | ||
j := i + n; | ||
end F; | ||
or | ||
terminate; | ||
end select; | ||
end loop; | ||
end TT; | ||
begin | ||
X := new TT; | ||
|
||
X.F (2) (I, J); | ||
pragma Test_Statement; | ||
|
||
X.G (R) (I, J); | ||
pragma Test_Statement; | ||
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,77 @@ | ||
Analyzing test.adb | ||
################## | ||
|
||
Resolving xrefs for node <CallStmt test.adb:33:6-33:21> | ||
******************************************************* | ||
|
||
Expr: <CallExpr test.adb:33:6-33:20> | ||
references: <DefiningName "F" test.adb:6:13-6:14> | ||
type: None | ||
expected type: None | ||
Expr: <CallExpr test.adb:33:6-33:13> | ||
references: <DefiningName "F" test.adb:6:13-6:14> | ||
type: None | ||
expected type: None | ||
Expr: <DottedName test.adb:33:6-33:9> | ||
references: <DefiningName "F" test.adb:6:13-6:14> | ||
type: None | ||
expected type: None | ||
Expr: <Id "X" test.adb:33:6-33:7> | ||
references: <DefiningName "X" test.adb:13:4-13:5> | ||
type: <ConcreteTypeDecl ["T"] test.adb:11:4-11:25> | ||
expected type: None | ||
Expr: <Id "F" test.adb:33:8-33:9> | ||
references: <DefiningName "F" test.adb:6:13-6:14> | ||
type: None | ||
expected type: None | ||
Expr: <Int test.adb:33:11-33:12> | ||
references: None | ||
type: <ConcreteTypeDecl ["Universal_Int_Type_"] __standard:116:3-116:45> | ||
expected type: None | ||
Expr: <Id "I" test.adb:33:15-33:16> | ||
references: <DefiningName "I" test.adb:14:4-14:5> | ||
type: <ConcreteTypeDecl ["Integer"] __standard:4:3-4:54> | ||
expected type: <ConcreteTypeDecl ["Integer"] __standard:4:3-4:54> | ||
Expr: <Id "J" test.adb:33:18-33:19> | ||
references: <DefiningName "J" test.adb:15:4-15:5> | ||
type: <ConcreteTypeDecl ["Integer"] __standard:4:3-4:54> | ||
expected type: <ConcreteTypeDecl ["Integer"] __standard:4:3-4:54> | ||
|
||
Resolving xrefs for node <CallStmt test.adb:36:6-36:21> | ||
******************************************************* | ||
|
||
Expr: <CallExpr test.adb:36:6-36:20> | ||
references: <DefiningName "G" test.adb:7:13-7:14> | ||
type: None | ||
expected type: None | ||
Expr: <CallExpr test.adb:36:6-36:13> | ||
references: <DefiningName "G" test.adb:7:13-7:14> | ||
type: None | ||
expected type: None | ||
Expr: <DottedName test.adb:36:6-36:9> | ||
references: <DefiningName "G" test.adb:7:13-7:14> | ||
type: None | ||
expected type: None | ||
Expr: <Id "X" test.adb:36:6-36:7> | ||
references: <DefiningName "X" test.adb:13:4-13:5> | ||
type: <ConcreteTypeDecl ["T"] test.adb:11:4-11:25> | ||
expected type: None | ||
Expr: <Id "G" test.adb:36:8-36:9> | ||
references: <DefiningName "G" test.adb:7:13-7:14> | ||
type: None | ||
expected type: None | ||
Expr: <Id "R" test.adb:36:11-36:12> | ||
references: <DefiningName "R" test.adb:3:28-3:29> | ||
type: <ConcreteTypeDecl ["Enume"] test.adb:3:4-3:34> | ||
expected type: <ConcreteTypeDecl ["Enume"] test.adb:3:4-3:34> | ||
Expr: <Id "I" test.adb:36:15-36:16> | ||
references: <DefiningName "I" test.adb:14:4-14:5> | ||
type: <ConcreteTypeDecl ["Integer"] __standard:4:3-4:54> | ||
expected type: <ConcreteTypeDecl ["Integer"] __standard:4:3-4:54> | ||
Expr: <Id "J" test.adb:36:18-36:19> | ||
references: <DefiningName "J" test.adb:15:4-15:5> | ||
type: <ConcreteTypeDecl ["Integer"] __standard:4:3-4:54> | ||
expected type: <ConcreteTypeDecl ["Integer"] __standard:4:3-4:54> | ||
|
||
|
||
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] |