Fix combining C and Fortran. Closes #8377.
diff --git a/test cases/fortran/9 cpp/meson.build b/test cases/fortran/9 cpp/meson.build index 7f73985..4a0a896 100644 --- a/test cases/fortran/9 cpp/meson.build +++ b/test cases/fortran/9 cpp/meson.build
@@ -1,4 +1,4 @@ -project('C++ and FORTRAN', 'cpp', 'fortran') +project('C++ and FORTRAN', 'c', 'cpp', 'fortran') cpp = meson.get_compiler('cpp') fc = meson.get_compiler('fortran') @@ -17,9 +17,17 @@ endif e = executable( + 'cfort', + ['main.c', 'fortran.f'], + dependencies : link_with, +) + +test('C and Fortran', e) + +e2 = executable( 'cppfort', ['main.cpp', 'fortran.f'], dependencies : link_with, ) -test('C++ FORTRAN', e) +test('C++ and Fortran', e2)