hppa64: Fix fmt_f_default_field_width_3.f90 and fmt_g_default_field_width_3.f90
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr98661.f90
blob40ddff05d436b062473afbda4fcd2d1939f9d0e4
1 ! { dg-do compile }
2 ! PR fortran/98661 - valgrind issues with error recovery
4 ! Test issues related to former testcase charlen_03.f90
5 program p
6 implicit none
7 type t
8 character(:), pointer :: c(n) ! { dg-error "must have a deferred shape" }
9 real, allocatable :: x(n) ! { dg-error "must have a deferred shape" }
10 end type
11 end
13 subroutine s
14 ! no 'implicit none'
15 type u
16 character(:), pointer :: c(n) ! { dg-error "must have a deferred shape" }
17 real, allocatable :: x(n) ! { dg-error "must have a deferred shape" }
18 end type
19 end