Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/alloc_comp_initializer_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 } ! Fixed by the patch for PRs 60357 and 61275 ! ! Contributed by Stefan Mauerberger <stefan.mauerberger@gmail.com> ! PROGRAM main IMPLICIT NONE TYPE :: test_typ REAL, ALLOCATABLE :: a END TYPE TYPE(test_typ) :: my_test_typ my_test_typ = test_typ (a = 1.0) if (abs (my_test_typ%a - 1.0) .gt. 1e-6) STOP 1 END PROGRAM main