Skip to content

Commit

Permalink
Add test of return-only subroutine
Browse files Browse the repository at this point in the history
  • Loading branch information
nchaimov committed Dec 20, 2024
1 parent aed21ae commit 2b7de35
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,7 @@ set(FORTRAN_TESTS_SOURCES_LIST
hello.f90
loop_test.f90
trivial.f90
return-only.f90
)

# Add a smoke test of the fparse-llvm script
Expand Down Expand Up @@ -701,4 +702,4 @@ foreach(test_source IN LISTS FORTRAN_TESTS_SOURCES_LIST)
DEPENDS run_${upper_comp}_${test_source}
)
endforeach()
endforeach()
endforeach()
7 changes: 7 additions & 0 deletions tests/fortran/return-only.f90
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
subroutine foo
return
end subroutine foo

program main
call foo
end program main

0 comments on commit 2b7de35

Please sign in to comment.