@@ -8,7 +8,8 @@ subdir('fortran')
88fortran_call_cxx = executable (' fortran_call_cxx' ,
99 sources : files (' fortran/main.f90' ),
1010 link_with : math_cxx,
11- link_language : ' fortran' )
11+ link_language : ' fortran'
12+ )
1213test (' Fortran call C++' , fortran_call_cxx, timeout : 5 )
1314
1415# -- Fortran calling C
@@ -19,8 +20,28 @@ fortran_call_c = executable('fortran_call_c',
1920)
2021test (' Fortran call C' , fortran_call_c, timeout : 5 )
2122
23+ # -- C calling Fortran
24+ c_fortran_error = executable (' c_fortran_error' ,
25+ sources : files (' c/error_main.c' ),
26+ link_with : error_fortran,
27+ link_language : ' fortran'
28+ )
29+ test (' C Fortran error' , c_fortran_error,
30+ timeout : 5 ,
31+ should_fail : true )
32+
2233# -- C++ calling Fortran
2334cxx_call_fortran = executable (' cxx_call_fortran' ,
2435 sources : files (' cxx/main.cxx' ),
25- link_with : math_fortran)
26- test (' C++ calling Fortran' , cxx_call_fortran, timeout : 10 )
36+ link_with : math_fortran
37+ )
38+ test (' C++ call Fortran' , cxx_call_fortran, timeout : 5 )
39+
40+ cxx_fortran_error = executable (' cxx_fortran_error' ,
41+ sources : files (' cxx/error_main.cxx' ),
42+ link_with : error_fortran,
43+ link_language : ' fortran'
44+ )
45+ test (' C++ Fortran error' , cxx_fortran_error,
46+ timeout : 5 ,
47+ should_fail : true )
0 commit comments