Debian Codegraph @

gcc/testsuite/gfortran.dg/pr93635.f90

raw
1 ! { dg-do compile }
2 ! PR fortran/93635
3 !
4 ! Test that some attribute conflicts are properly diagnosed
5
6 program p
7 implicit none
8 character(len=:),allocatable :: r,s
9 namelist /args/ r,s
10 equivalence(r,s) ! { dg-error "EQUIVALENCE attribute conflicts with ALLOCATABLE" }
11 allocate(character(len=1024) :: r)
12 end
13
14 subroutine sub (p, q)
15 implicit none
16 real, pointer, intent(inout) :: p(:), q(:)
17 namelist /nml/ p,q
18 equivalence(p,q) ! { dg-error "EQUIVALENCE attribute conflicts with DUMMY" }
19 end