2009-09-09 Segher Boessenkool <segher@kernel.crashing.org>
[official-gcc.git] / gcc / testsuite / gnat.dg / thin_pointer.ads
blob6f528a51ed9ca033e3948a71afbadf88fc75e1db
1 with System;
3 package Thin_Pointer is
5 type Stream is array (Integer range <>) of Character;
7 type Stream_Ptr is access Stream;
8 for Stream_Ptr'Size use Standard'Address_Size;
10 type Buf is record
11 A : System.Address;
12 end record;
14 type Buf_Wrapper is record
15 B : Buf;
16 end record;
18 type Buf_Ptr is access Buf_Wrapper;
20 procedure Set_Buffer (AD : Buf_Ptr; Buffer : Stream_ptr);
22 end Thin_Pointer;