Commit 430b2815 by Arnaud Charlet Committed by Arnaud Charlet

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

From-SVN: r135814
parent d1ba4e42
2008-05-23 Arnaud Charlet <charlet@adacore.com>
* gnat.dg/addr_slice.adb: New test.
2008-05-23 Jakub Jelinek <jakub@redhat.com>
PR c++/36237
......
-- { dg-do compile }
-- { dg-options "-gnatws" }
procedure Addr_Slice is
type Item_Type is record
I : Integer;
end record;
type Index_Type is (A, B);
for Index_Type use (A => 1, B => 10);
Item_Array : constant array (Index_Type) of Item_Type
:= (A => (I => 10), B => (I => 22));
Item : Item_Type;
for Item'Address use Item_Array(Index_Type)'Address;
begin
null;
end;
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