@@ -8,7 +8,8 @@ subdir('fortran')
8
8
fortran_call_cxx = executable (' fortran_call_cxx' ,
9
9
sources : files (' fortran/main.f90' ),
10
10
link_with : math_cxx,
11
- link_language : ' fortran' )
11
+ link_language : ' fortran'
12
+ )
12
13
test (' Fortran call C++' , fortran_call_cxx, timeout : 5 )
13
14
14
15
# -- Fortran calling C
@@ -19,8 +20,28 @@ fortran_call_c = executable('fortran_call_c',
19
20
)
20
21
test (' Fortran call C' , fortran_call_c, timeout : 5 )
21
22
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
+
22
33
# -- C++ calling Fortran
23
34
cxx_call_fortran = executable (' cxx_call_fortran' ,
24
35
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