mirror of
https://github.com/autc04/Retro68.git
synced 2024-06-28 11:30:19 +00:00
16 lines
449 B
Fortran
16 lines
449 B
Fortran
! { dg-do compile }
|
|
! { dg-options "-fdump-tree-original" }
|
|
!
|
|
! Check the fix for PR87881.
|
|
!
|
|
complex(8) :: zi = (0,-1_8)
|
|
character(2) :: chr ='ab'
|
|
if (zi%re%kind .ne. kind (real (zi))) stop 1
|
|
if (chr%len%kind .ne. kind (len (chr))) stop 2
|
|
|
|
! After simplification there should only be the delarations for 'zi' and 'chr'
|
|
|
|
! { dg-final { scan-tree-dump-times "zi" 1 "original" } }
|
|
! { dg-final { scan-tree-dump-times "chr" 1 "original" } }
|
|
end
|