summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/intrinsic_external_1.f90
blob: 7d590126f527bbc562cdb2e03b967c60a06190e4 (plain)
1
2
3
4
5
6
7
8
! { dg-do compile }
! PR fortran/20869
! Note 12.11 "A name shall not appear in both an EXTERNAL and an
! INTRINSIC statement in the same scoping unit.
program u
  intrinsic :: nint
  external :: nint  ! { dg-error "EXTERNAL attribute conflicts with INTRINSIC attribute" }
end program u