view gcc/testsuite/gfortran.dg/iso_c_binding_compiler_1.f90 @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { dg-do link }
!
! PR fortran/40569
!
! Check compiler_version/compiler_options intrinsics
!
subroutine test()
  use iso_fortran_env, only: compiler_version
  print '(3a)', '>>',compiler_version(),'<<'
end

use iso_fortran_env, foo => compiler_version, bar => compiler_version
  implicit none
  print *, foo()
  print *, bar()
  print '(3a)', '>',compiler_options(),'<'
  call test()
end