-
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add checks that Flang f18 doesn't have yet
- Loading branch information
Showing
12 changed files
with
99 additions
and
5 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
check_source_compiles(Fortran | ||
"program abst | ||
implicit none | ||
type, abstract :: L1 | ||
integer, pointer :: bullseye(:,:) | ||
end type L1 | ||
type, extends(L1) :: L2 | ||
integer, pointer :: arrow(:) | ||
end type L2 | ||
class(L2), allocatable :: obj | ||
end program | ||
" | ||
f03abstract | ||
) |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
check_source_compiles(Fortran | ||
"program a | ||
implicit none | ||
character(:), allocatable :: x(:) | ||
character(:), allocatable :: flex(:), scalar | ||
flex = [character(5) :: 'hi', 'hello'] | ||
end program" | ||
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
check_source_compiles(Fortran | ||
" | ||
program selectType | ||
implicit none | ||
real :: r | ||
integer :: i | ||
call selector(r) | ||
call selector(i) | ||
contains | ||
subroutine selector(x) | ||
class(*), intent(in) :: x | ||
select type (x) | ||
type is (real) | ||
print *, 'real' | ||
type is (integer) | ||
print *, 'integer' | ||
end select | ||
end subroutine | ||
end program | ||
" | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
check_source_compiles(Fortran | ||
"program a | ||
implicit none | ||
call execute_command_line('echo hello') | ||
end program" | ||
f08execute | ||
) |
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
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,6 +1,11 @@ | ||
set_property(DIRECTORY PROPERTY LABELS pointer) | ||
|
||
foreach(t IN ITEMS null_pointer derived_type) | ||
set(tests null_pointer) | ||
if(f03abstract) | ||
list(APPEND tests derived_type) | ||
endif() | ||
|
||
foreach(t IN LISTS tests) | ||
add_executable(${t} ${t}.f90) | ||
add_test(NAME ${t} COMMAND ${t}) | ||
endforeach() |
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