-
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
82 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
check_source_compiles(Fortran | ||
"program a | ||
implicit none | ||
character(:), allocatable :: x(:) | ||
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY) | ||
|
||
check_source_compiles(Fortran "subroutine r() | ||
character(:), allocatable :: flex(:), scalar | ||
flex = [character(5) :: 'hi', 'hello'] | ||
end program" | ||
end subroutine" | ||
f03charalloc | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
check_source_compiles(Fortran | ||
" | ||
program a | ||
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY) | ||
|
||
check_source_compiles(Fortran "subroutine r() | ||
use, intrinsic :: ieee_arithmetic, only : ieee_next_after | ||
implicit none | ||
print *, ieee_next_after(0.,0.) | ||
end program | ||
" | ||
print *, ieee_next_after(0., 0.) | ||
end subroutine" | ||
f03ieee | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,16 @@ | ||
check_source_compiles(Fortran | ||
" | ||
program selectType | ||
implicit none | ||
real :: r | ||
integer :: i | ||
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY) | ||
|
||
call selector(r) | ||
call selector(i) | ||
contains | ||
subroutine selector(x) | ||
check_source_compiles(Fortran "subroutine selector(x) | ||
class(*), intent(in) :: x | ||
select type (x) | ||
type is (real) | ||
print *, 'real' | ||
print '(a)', 'real' | ||
type is (integer) | ||
print *, 'integer' | ||
print '(a)', 'integer' | ||
end select | ||
end subroutine | ||
end program | ||
" | ||
end subroutine" | ||
f03selectType | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,12 @@ | ||
check_source_compiles(Fortran | ||
" | ||
program test | ||
implicit none | ||
contains | ||
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY) | ||
|
||
subroutine r(A) | ||
check_source_compiles(Fortran "subroutine r(A) | ||
integer, intent(inout) :: A(..) | ||
select rank(A) | ||
rank default | ||
error stop | ||
end select | ||
end subroutine r | ||
end program | ||
" | ||
f18assumed_rank | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ program str2int_demo | |
|
||
x = '42' | ||
m = str2int(x) | ||
if (m/=42) error stop | ||
if (m /= 42) error stop | ||
|
||
contains | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters