In reply to bhupesh.paliwal:
Section 3.12.1 of the LRM discusses compilation units. It is a requirement that tools support both single file compilation unit and multi-file compilation unit. The behavior you are seeing is when multi-file compilation unit is used, which is the default behavior for some tools. Other tools default to single file compilation unit.