Skip to content

Commit 62989f6

Browse files
committed
fix demo_write_bitset
1 parent b5c4368 commit 62989f6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/examples/demo_write_bitset.f90

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
program demo_write_bitset
2+
use stdlib_bitsets
3+
implicit none
24
character(*), parameter :: &
35
bits_0 = 'S33B000000000000000000000000000000000', &
46
bits_1 = 'S33B000000000000000000000000000000001', &
5-
bits_33 = 'S33B100000000000000000000000000000000'
7+
bits_2 = 'S33B100000000000000000000000000000000'
68
character(:), allocatable :: test_0, test_1, test_2
7-
integer :: unit
9+
integer :: unit, status
810
type(bitset_64) :: set0, set1, set2, set3, set4, set5
911
call set0 % read_bitset( bits_0, status )
1012
call set1 % read_bitset( bits_1, status )
@@ -28,6 +30,6 @@ program demo_write_bitset
2830
call set4 % read_bitset(unit, advance='no')
2931
call set5 % read_bitset(unit)
3032
if ( set3 == set0 .and. set4 == set1 .and. set5 == set2 ) then
31-
write(*,*) WRITE_BITSET to READ_BITSET through unit worked.'
33+
write(*,*) 'WRITE_BITSET to READ_BITSET through unit worked.'
3234
end if
3335
end program demo_write_bitset

0 commit comments

Comments
 (0)