Skip to content

Commit ae93021

Browse files
committed
NVHPC/oneAPI correctness tweak
1 parent 0c98e60 commit ae93021

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/bool/bad_bool.f90

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ module bad_bool
55

66
implicit none
77

8+
integer, parameter :: lk = 8
9+
810
type, bind(C) :: bool_args
9-
logical(kind=selected_logical_kind(64)) :: value
11+
logical(8) :: value
1012
integer(C_INT) :: dummy
1113
end type
1214

test/bool/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,4 @@ target_link_libraries(cxx_fortran_bad_bool PRIVATE bad_bool_fortran)
5353
add_test(NAME Cpp_Fortran_bad_bool COMMAND ${CMAKE_COMMAND} -E env $<TARGET_FILE:cxx_fortran_bad_bool>)
5454

5555
set_tests_properties(C_Fortran_bad_bool Fortran_C_bad_bool Cpp_Fortran_bad_bool PROPERTIES WILL_FAIL true)
56+
set_target_properties(c_fortran_bool c_fortran_bad_bool PROPERTIES LINKER_LANGUAGE C)

0 commit comments

Comments
 (0)