[to-be-committed] [RISC-V] Use Zbkb for general 64 bit constants when profitable
[official-gcc.git] / gcc / testsuite / gfortran.dg / char_array_arg_1.f90
blob097fbc6f65f0cec403a23c0a0c8769f765d4effc
1 ! { dg-do compile }
2 ! Test the fix for pr41167, in which the first argument of 'pack', below,
3 ! was simplified incorrectly, with the results indicated.
5 ! Contributed by Harald Anlauf <anlauf@gmx.de>
7 program gfcbug88
8 implicit none
9 type t
10 character(len=8) :: name
11 end type t
12 type(t) ,parameter :: obstyp(2)= (/ t ('A'), t ('B') /)
13 character(9) :: chr(1)
15 print *, pack (" "//obstyp(:)% name, (/ .true., .false. /)) ! Used to ICE on compilation
16 chr = pack (" "//obstyp(:)% name, (/ .true., .false. /)) ! Used to give conversion error
17 end program gfcbug88