Files
gcc-reflection/gcc/testsuite/gnat.dg/loop_optimization18_pkg.ads
Eric Botcazou 61e0b23353 utils2.c (gnat_invariant_expr): Return null if the type of the expression ends up being composite.
* gcc-interface/utils2.c (gnat_invariant_expr): Return null if the type
	of the expression ends up being composite.

From-SVN: r221449
2015-03-16 09:59:01 +00:00

16 lines
345 B
Ada

with Unchecked_Conversion;
package Loop_Optimization18_Pkg is
type Arr is array (Integer range <>) of Natural;
type Rec (UB : Integer) is record
L : Arr (1 .. UB);
end record;
type Byte_Array_Type is new String (1..4);
function Conv is new Unchecked_Conversion (Byte_Array_Type, Integer);
end Loop_Optimization18_Pkg;