aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/opt59_pkg.adb
blob: 16a183b47e56dc2a19fb5092123cfbf30c02e331 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package body Opt59_Pkg is

  function Get_BV1 return Boolean_Vector is
  begin
    return (others => True);
  end;

  function Get_BV2 return Boolean_Vector is
  begin
    return (others => False);
  end;

  procedure Test (B : Boolean) is
  begin
    if not B then
      raise Program_Error;
    end if;
  end;

end Opt59_Pkg;