| 1 |
! { dg-do compile } |
| 2 |
! { dg-options "-Wall" } |
| 3 |
! The compiler_options() function is dependent on the |
| 4 |
! command line options and thus incompatible with -fcompare-debug. |
| 5 |
! { dg-skip-if "-fcompare-debug incompatible test" { *-*-* } { "-fcompare-debug" } { "" } } */ |
| 6 |
! |
| 7 |
! PR fortran/45823 |
| 8 |
! |
| 9 |
! We used to warn about |
| 10 |
! "Type specified for intrinsic function" for this file |
| 11 |
! |
| 12 |
|
| 13 |
use iso_c_binding |
| 14 |
use iso_Fortran_env |
| 15 |
implicit none |
| 16 |
intrinsic sin |
| 17 |
real :: x = 3.4 |
| 18 |
print *, sin(x), c_sizeof(c_int), compiler_options(), compiler_version() |
| 19 |
end |
| 20 |
|
| 21 |
|
| 22 |
module test_mod |
| 23 |
use iso_fortran_env |
| 24 |
end module test_mod |
| 25 |
|
| 26 |
subroutine test |
| 27 |
use test_mod |
| 28 |
end subroutine test |