Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/realloc_on_assign_27.f08 @ 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 } type :: t integer :: i end type type, extends(t) :: r real :: r end type class(t), allocatable :: x type(r) :: y = r (3, 42) x = y if (x%i /= 3) STOP 1 select type(x) class is (r) if (x%r /= 42.0) STOP 2 class default STOP 3 end select end