RISC-V: Regenerate opt urls.
[official-gcc.git] / gcc / testsuite / gfortran.dg / class_53.f90
blob83f55712d0b6eb9cecc720f98eaa279ea9f2d1b0
1 ! { dg-do compile }
3 ! PR 54778: [OOP] an ICE on invalid OO code
5 ! Contributed by Sylwester Arabas <slayoo@staszic.waw.pl>
7 implicit none
9 type :: arr_t
10 real :: at
11 end type
13 type(arr_t) :: this
14 class(arr_t) :: elem ! { dg-error "must be dummy, allocatable or pointer" }
16 elem = this ! { dg-error "Nonallocatable variable must not be polymorphic in intrinsic assignment" }
18 end