--  Subunits named by their parent's expanded name (RM 10.1.3): a subunit of a subunit
--  (`separate (Pkg.Sub)`), and a subunit of a package body nested in the main subprogram
--  (`separate (Main.Inner)`), each in the file its full name gives.
with Ada.Text_IO;
with Pkg;
procedure Main is
   package Inner is
      procedure Hello;
   end Inner;
   package body Inner is
      procedure Hello is separate;
   end Inner;
   N : Integer := 1;
begin
   Inner.Hello;
   Pkg.Sub (N);
   Ada.Text_IO.Put_Line (Integer'Image (N));
end Main;
