c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / gnat.dg / enum2.adb
blobe98252a19261864254f634f90e7297fbe791f982
1 -- { dg-do run }
2 -- { dg-options "-gnat05 -O2" }
4 with Enum2_Pkg; use Enum2_Pkg;
6 procedure Enum2 is
7 type Enum is (A, B, C, D);
8 Table : array (B .. C, 1 .. 1) of F_String := (others => (others => Null_String));
9 begin
10 Table := (others => (others => Null_String));
11 end;