PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / gnat.dg / loop_optimization12.ads
blob0ed4e8b4b20af633f85ead39ad751a230e7f57b8
1 package Loop_Optimization12 is
3 type Enum1 is (A, B, C, D, E, F, G, H, I, J);
5 type Enum2 is (A, B, C);
7 type Enum3 is (A, B, C, D, E, F);
9 type Enum4 is (A, B, C, D);
11 type Enum5 is (A, B, C, D, E);
13 type Arr is array (Enum3, Enum4, Enum4, Enum5, Enum5, Enum3,
14 Enum2, Enum3, Enum5, Enum3) of Natural;
16 type Arr_Ptr is access Arr;
17 type Ext_Arr is array (Enum1) of Arr_Ptr;
19 type Rec is record
20 F : Ext_Arr;
21 end record;
23 type Rec_Ptr is access Rec;
25 procedure Reset (S : Rec_Ptr);
27 end Loop_Optimization12;