-
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/1080' into 'master'
Qualified expressions as code statements Closes #1080 See merge request eng/libadalang/libadalang!1417
- Loading branch information
Showing
4 changed files
with
60 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 Machine_Code; use Machine_Code; | ||
|
||
procedure Test is | ||
procedure Code is | ||
begin | ||
Asm_Insn'(Asm ("nop")); | ||
pragma Test_Statement; | ||
end Code; | ||
begin | ||
Code; | ||
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,32 @@ | ||
Analyzing test.adb | ||
################## | ||
|
||
Resolving xrefs for node <CallStmt test.adb:6:7-6:30> | ||
***************************************************** | ||
|
||
Expr: <QualExpr test.adb:6:7-6:29> | ||
references: <DefiningName "Asm_Insn" s-maccod.ads:60:9-60:17> | ||
type: None | ||
expected type: None | ||
Expr: <Id "Asm_Insn" test.adb:6:7-6:15> | ||
references: <DefiningName "Asm_Insn" s-maccod.ads:60:9-60:17> | ||
type: None | ||
expected type: None | ||
Expr: <ParenExpr test.adb:6:16-6:29> | ||
type: <ConcreteTypeDecl ["Asm_Insn"] s-maccod.ads:60:4-60:29> | ||
expected type: <ConcreteTypeDecl ["Asm_Insn"] s-maccod.ads:60:4-60:29> | ||
Expr: <CallExpr test.adb:6:17-6:28> | ||
references: <DefiningName "Asm" s-maccod.ads:113:13-113:16> | ||
type: <ConcreteTypeDecl ["Asm_Insn"] s-maccod.ads:60:4-60:29> | ||
expected type: <ConcreteTypeDecl ["Asm_Insn"] s-maccod.ads:60:4-60:29> | ||
Expr: <Id "Asm" test.adb:6:17-6:20> | ||
references: <DefiningName "Asm" s-maccod.ads:113:13-113:16> | ||
type: <ConcreteTypeDecl ["Asm_Insn"] s-maccod.ads:60:4-60:29> | ||
expected type: None | ||
Expr: <Str ""nop"" test.adb:6:22-6:27> | ||
references: None | ||
type: <ConcreteTypeDecl ["String"] __standard:105:3-105:57> | ||
expected type: <ConcreteTypeDecl ["String"] __standard:105:3-105:57> | ||
|
||
|
||
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] |