Commit 24d124a4 by Hristian Kirtchev Committed by Pierre-Marie de Rodat

[Ada] Make GNAT.Array_Split a preelaborable unit

This patch makes GNAT.Array_Split a preelaborable unit. As a result, it can be
withed by other preelaborated untis.

2018-06-11  Hristian Kirtchev  <kirtchev@adacore.com>

gcc/ada/

	* libgnat/g-arrspl.ads: Add pragma Preelaborate.

gcc/testsuite/

	* gnat.dg/gnat_array_split1.adb, gnat.dg/gnat_array_split1.ads: New
	testcase.

From-SVN: r261419
parent 63254915
2018-06-11 Hristian Kirtchev <kirtchev@adacore.com>
* libgnat/g-arrspl.ads: Add pragma Preelaborate.
2018-06-11 Arnaud Charlet <charlet@adacore.com>
* exp_ch4.adb (Expand_Record_Equality): Remove extraneous "True and
......
......@@ -56,6 +56,7 @@ generic
-- Returns True if Item is found in Set, False otherwise
package GNAT.Array_Split is
pragma Preelaborate;
Index_Error : exception;
-- Raised by all operations below if Index > Field_Count (S)
......
2018-06-11 Hristian Kirtchev <kirtchev@adacore.com>
* gnat.dg/gnat_array_split1.adb, gnat.dg/gnat_array_split1.ads: New
testcase.
2018-06-11 Javier Miranda <miranda@adacore.com>
* gnat.dg/prot4.adb: New testcase.
......
-- { dg-do compile }
package body GNAT_Array_Split1 is
procedure Dummy is null;
end GNAT_Array_Split1;
with GNAT.Array_Split;
package GNAT_Array_Split1 is
pragma Preelaborate;
procedure Dummy;
end GNAT_Array_Split1;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment