summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/loop_boolean.adb
blob: f2836c393431fae46532f1781931e6abc8c129a2 (plain)
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;