1! { dg-do compile } 2! { dg-options "-std=f2003" } 3! 4! Check for new F2008 integer constants, needed for 5! coarray support (cf. PR fortran/18918) 6! 7 8USE iso_fortran_env 9implicit none 10integer(kind=ATOMIC_INT_KIND) :: atomic_int ! { dg-error "has no IMPLICIT type" } 11logical(kind=ATOMIC_LOGICAL_KIND) :: atomic_bool ! { dg-error "has no IMPLICIT type" } 12 13print *, OUTPUT_UNIT 14 15if (IOSTAT_INQUIRE_INTERNAL_UNIT <= 0) call abort() ! { dg-error "has no IMPLICIT type" } 16print *,STAT_STOPPED_IMAGE ! { dg-error "has no IMPLICIT type" } 17print *, STAT_LOCKED_OTHER_IMAGE ! { dg-error "has no IMPLICIT type" } 18print *, STAT_LOCKED ! { dg-error "has no IMPLICIT type" } 19print *, STAT_UNLOCKED ! { dg-error "has no IMPLICIT type" } 20end 21 22module m 23USE iso_fortran_env, only: INPUT_UNIT 24USE iso_fortran_env, only: ATOMIC_INT_KIND ! { dg-error "is not in the selected standard" } 25implicit none 26end module m 27 28module m2 29USE iso_fortran_env, only: foo => STAT_UNLOCKED ! { dg-error "is not in the selected standard" } 30implicit none 31end module m2 32 33module m3 34USE iso_fortran_env, foo => IOSTAT_INQUIRE_INTERNAL_UNIT ! { dg-error "not in the selected standard" } 35implicit none 36end module m3 37