Skip to content

Commit

Permalink
P506-012: Add test for fully_qualified_name fix
Browse files Browse the repository at this point in the history
  • Loading branch information
raph-amiard committed Sep 11, 2019
1 parent 5b5f6c9 commit c4e1af4
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ada/testsuite/tests/name_resolution/fqn_subunits/foo.ads
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 ada/testsuite/tests/name_resolution/fqn_subunits/pkg-inner.adb
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;

5 changes: 5 additions & 0 deletions ada/testsuite/tests/name_resolution/fqn_subunits/pkg.adb
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;
31 changes: 31 additions & 0 deletions ada/testsuite/tests/name_resolution/fqn_subunits/pkg.ads
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;
4 changes: 4 additions & 0 deletions ada/testsuite/tests/name_resolution/fqn_subunits/test.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Analyzing foo.ads
#################

Done.
3 changes: 3 additions & 0 deletions ada/testsuite/tests/name_resolution/fqn_subunits/test.yaml
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

0 comments on commit c4e1af4

Please sign in to comment.