Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gfortran.dg / boz_1.f90
blobabf02d3604345e7b01a6f58396702eb5f5bb04af
1 ! { dg-do run }
2 ! Test the boz handling
3 program boz
5 implicit none
7 integer(1), parameter :: b1 = b'00000001'
8 integer(2), parameter :: b2 = b'0101010110101010'
9 integer(4), parameter :: b4 = b'01110000111100001111000011110000'
10 integer(8), parameter :: &
11 & b8 = b'0111000011110000111100001111000011110000111100001111000011110000'
13 integer(1), parameter :: o1 = o'12'
14 integer(2), parameter :: o2 = o'4321'
15 integer(4), parameter :: o4 = o'43210765'
16 integer(8), parameter :: o8 = o'1234567076543210'
18 integer(1), parameter :: z1 = z'a'
19 integer(2), parameter :: z2 = z'ab'
20 integer(4), parameter :: z4 = z'dead'
21 integer(8), parameter :: z8 = z'deadbeef'
23 if (z1 /= 10_1) call abort
24 if (z2 /= 171_2) call abort
25 if (z4 /= 57005_4) call abort
26 if (z8 /= 3735928559_8) call abort
28 if (b1 /= 1_1) call abort
29 if (b2 /= 21930_2) call abort
30 if (b4 /= 1894838512_4) call abort
31 if (b8 /= 8138269444283625712_8) call abort
33 if (o1 /= 10_1) call abort
34 if (o2 /= 2257_2) call abort
35 if (o4 /= 9245173_4) call abort
36 if (o8 /= 45954958542472_8) call abort
38 end program boz