Skip to content
Snippets Groups Projects
Commit 5da9694c authored by Eric Botcazou's avatar Eric Botcazou Committed by Eric Botcazou
Browse files

* gnat.dg/opt19.adb: New test.

From-SVN: r179047
parent 116b9c07
No related branches found
No related tags found
No related merge requests found
2011-09-21 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/opt19.adb: New test.
2011-09-21 Terry Guo <terry.guo@arm.com> 2011-09-21 Terry Guo <terry.guo@arm.com>
* gcc.target/arm/neon-thumb2-move.c: Skip the warning message * gcc.target/arm/neon-thumb2-move.c: Skip the warning message
......
-- { dg-do compile }
-- { dg-options "-O" }
procedure Opt19 is
type Enum is (One, Two);
type Vector_T is array (Enum) of Integer;
Zero_Vector : constant Vector_T := (Enum => 0);
type T is record
Vector : Vector_T;
end record;
procedure Nested (Value : in out T; E : Enum; B : out Boolean) is
I : Integer renames Value.Vector(E);
begin
B := I /= 0;
end;
Obj : T := (Vector => Zero_Vector);
B : Boolean;
begin
Nested (Obj, One, B);
end;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment