aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/tls1_pkg.ads
blob: 3153fafd174fa68a695625f3ecb506bc0e0f56eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
pragma Restrictions (No_Implicit_Loops);

package TLS1_Pkg is
   Type My_Record_Type is record
      Date : long_float;
      Point : Integer;
   end record;

   type Nb_Type is range 0 .. 500;
   subtype Index_Type is Nb_Type range 1 .. 500;

   type My_Array_Type is array (Index_Type) of My_Record_Type;

   type My_Pseudo_Box_Type is record
      Nb : Nb_Type;
      Data : My_Array_Type;
   End record;

   My_Array : My_Pseudo_Box_Type := (Nb => 10,
     Data => (others => (Date => 3.0, Point => 1)));
   pragma Thread_Local_Storage (My_Array);

end TLS1_Pkg;