-
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.
- Loading branch information
Showing
4 changed files
with
92 additions
and
1 deletion.
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,11 @@ | ||
with System; | ||
|
||
procedure Test (A : System.Address) is | ||
I : Integer := Integer'Deref(A); | ||
pragma Test_Statement; | ||
|
||
B : Boolean := Integer'Deref(A) = 2; | ||
pragma Test_Statement; | ||
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,64 @@ | ||
Analyzing test.adb | ||
################## | ||
|
||
Resolving xrefs for node <ObjectDecl ["I"] test.adb:4:4-4:36> | ||
************************************************************* | ||
|
||
Expr: <Id "Integer" test.adb:4:8-4:15> | ||
references: <DefiningName "Integer" __standard:4:8-4:15> | ||
type: None | ||
expected type: None | ||
Expr: <AttributeRef test.adb:4:19-4:35> | ||
references: None | ||
type: <ConcreteTypeDecl ["Integer"] __standard:4:3-4:54> | ||
expected type: <ConcreteTypeDecl ["Integer"] __standard:4:3-4:54> | ||
Expr: <Id "Integer" test.adb:4:19-4:26> | ||
references: <DefiningName "Integer" __standard:4:8-4:15> | ||
type: None | ||
expected type: None | ||
Expr: <Id "Deref" test.adb:4:27-4:32> | ||
references: None | ||
type: None | ||
expected type: None | ||
Expr: <Id "A" test.adb:4:33-4:34> | ||
references: <DefiningName "A" test.adb:3:17-3:18> | ||
type: <ConcreteTypeDecl ["Address"] system.ads:67:4-67:28> | ||
expected type: <ConcreteTypeDecl ["Address"] system.ads:67:4-67:28> | ||
|
||
Resolving xrefs for node <ObjectDecl ["B"] test.adb:7:4-7:40> | ||
************************************************************* | ||
|
||
Expr: <Id "Boolean" test.adb:7:8-7:15> | ||
references: <DefiningName "Boolean" __standard:3:8-3:15> | ||
type: None | ||
expected type: None | ||
Expr: <RelationOp test.adb:7:19-7:39> | ||
type: <ConcreteTypeDecl ["Boolean"] __standard:3:3-3:33> | ||
expected type: <ConcreteTypeDecl ["Boolean"] __standard:3:3-3:33> | ||
Expr: <AttributeRef test.adb:7:19-7:35> | ||
references: None | ||
type: <ConcreteTypeDecl ["Integer"] __standard:4:3-4:54> | ||
expected type: <ConcreteTypeDecl ["Integer"] __standard:4:3-4:54> | ||
Expr: <Id "Integer" test.adb:7:19-7:26> | ||
references: <DefiningName "Integer" __standard:4:8-4:15> | ||
type: None | ||
expected type: None | ||
Expr: <Id "Deref" test.adb:7:27-7:32> | ||
references: None | ||
type: None | ||
expected type: None | ||
Expr: <Id "A" test.adb:7:33-7:34> | ||
references: <DefiningName "A" test.adb:3:17-3:18> | ||
type: <ConcreteTypeDecl ["Address"] system.ads:67:4-67:28> | ||
expected type: <ConcreteTypeDecl ["Address"] system.ads:67:4-67:28> | ||
Expr: <OpEq "=" test.adb:7:36-7:37> | ||
references: None | ||
type: None | ||
expected type: None | ||
Expr: <Int test.adb:7:38-7:39> | ||
references: None | ||
type: <ConcreteTypeDecl ["Universal_Int_Type_"] __standard:116:3-116:45> | ||
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] |