view gcc/testsuite/gfortran.dg/iso_c_binding_compiler_3.f90 @ 128:fe568345ddd5

fix CbC-example
author mir3636
date Wed, 11 Apr 2018 19:32:28 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { dg-do compile }
! { dg-options "-Wall" }
!
! PR fortran/45823
!
! We used to warn about 
!  "Type specified for intrinsic function" for this file
!

use iso_c_binding
use iso_Fortran_env
implicit none
intrinsic sin
real :: x = 3.4
print *, sin(x), c_sizeof(c_int), compiler_options(), compiler_version()
end


module test_mod
    use iso_fortran_env
end module test_mod

subroutine test
use test_mod
end subroutine test