1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
-- { dg-do run } -- { dg-options "-gnatVaM" } procedure Loop_Boolean is type R is record B : Boolean; end record; procedure proc (X : R) is B : Boolean; begin B := X.B; end; begin for I in reverse Boolean loop Proc ((B => I)); end loop; end;