forked from AdaCore/libadalang
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
P506-012: Add test for fully_qualified_name fix
- Loading branch information
1 parent
5b5f6c9
commit c4e1af4
Showing
6 changed files
with
61 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package Foo is | ||
X : Integer; | ||
Z : Integer; | ||
end Foo; |
14 changes: 14 additions & 0 deletions
14
ada/testsuite/tests/name_resolution/fqn_subunits/pkg-inner.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,14 @@ | ||
separate (Pkg) | ||
package body Inner is | ||
|
||
A : Integer; | ||
|
||
procedure Proc is | ||
Y : Integer := Pkg.Inner.A; | ||
pragma Test_Statement; | ||
begin | ||
null; | ||
end Proc; | ||
|
||
end Inner; | ||
|
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,5 @@ | ||
package body Pkg is | ||
|
||
package body Inner is separate; | ||
|
||
end Pkg; |
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,31 @@ | ||
with Foo; | ||
|
||
package Pkg is | ||
|
||
type Kikou is private; | ||
|
||
package Inner is | ||
type T is private; | ||
|
||
use Foo; | ||
|
||
procedure Proc; | ||
|
||
Pouet : Integer; | ||
private | ||
type T is record | ||
Obj : Integer; | ||
end record; | ||
end Inner; | ||
|
||
private | ||
type Kikou is record | ||
Lol : Integer; | ||
end record; | ||
|
||
Pouet : Integer; | ||
|
||
Z : Float; | ||
|
||
type T is null record; | ||
end Pkg; |
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 @@ | ||
Analyzing foo.ads | ||
################# | ||
|
||
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,3 @@ | ||
driver: name-resolution | ||
input_sources: [foo.ads] | ||
with_default_project: False |