view gcc/testsuite/gfortran.dg/derived_constructor_char_2.f90 @ 128:fe568345ddd5

fix CbC-example
author mir3636
date Wed, 11 Apr 2018 19:32:28 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { dg-do compile }
! { dg-options "-fdump-tree-original" }
!
! PR fortran/44857
!
!

  Type :: t
    character (len=5) :: txt(2)
  End Type
  character (len=5) :: str(2) = [ "12345", "67890" ]
  Type (t) :: tt = t( [str] ) ! { dg-error "does not reduce to a constant" }
End