view gcc/testsuite/gfortran.dg/array_constructor_type_4.f03 @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 84e7813d76e9
children
line wrap: on
line source

! { dg-do run }
!
! PR fortran/27997
!
! Ensure that :: is present when a typespec is deduced.
!
PROGRAM test
  INTEGER :: array(1)
  INTEGER = 42

  array = [ INTEGER ]
  IF (array(1) /= 42) THEN
    STOP 1
  END IF
END PROGRAM test