c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / gnat.dg / discr55.adb
blob0444672d96deed54aa0452b42cf39d5726522159
1 -- { dg-do run }
3 procedure Discr55 is
5 type Rec (C : Character) is record
6 case C is
7 when 'Z' .. Character'Val (128) => I : Integer;
8 when others => null;
9 end case;
10 end record;
12 R : Rec ('Z');
14 begin
15 R.I := 0;
16 end;