summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/common_15.f90
blob: 20694fd143b91368188e91148ce673ca0c319d33 (plain)
1
2
3
4
5
6
7
8
9
! { dg-do compile }
!
! PR 50515: gfortran should not accept an external that is a common (r178939)
!
! Contributed by Vittorio Zecca <zeccav@gmail.com>

common/sub/ a  ! { dg-error "can not have the EXTERNAL attribute" }
external sub
end