aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gnat.dg/bit_packed_array2.adb
blob: b403122f5f1b0c159acd9d2f8b1cf6530f09ec67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
-- { dg-do compile }
-- { dg-options "-gnatws" }

procedure Bit_Packed_Array2 is

  type Bit_Array is array (integer range <>) of Boolean;
  pragma Pack(Bit_Array);

  b1  : Bit_Array(1..64);
  b2  : Bit_array(1..64);
  res : Bit_array(1..64);

begin

  if (not((not b1) or (not b2))) /= res then 
    null;
  end if;

end;