Skip to content

Commit

Permalink
End module with end module (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
havogt authored Aug 25, 2020
1 parent 5a83fdf commit ab4478e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/cpp_bindgen/generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,6 @@ namespace cpp_bindgen {
strm << get_fortran_generics();
strm << "contains\n";
strm << _impl::get_entities<_impl::fortran_wrapper_traits>();
strm << "end\n";
strm << "end module\n";
}
} // namespace cpp_bindgen
2 changes: 1 addition & 1 deletion tests/regression/array/bindgen_regression_array.f90
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ subroutine fill_array(arg0)

call fill_array_impl(descriptor0)
end subroutine
end
end module
2 changes: 1 addition & 1 deletion tests/regression/array/bindgen_regression_array_cu.f90
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ subroutine fill_gpu_array(arg0)

call fill_gpu_array_impl(descriptor0)
end subroutine
end
end module
2 changes: 1 addition & 1 deletion tests/regression/simple/bindgen_regression_simple.f90
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ subroutine print_number_from_cpp(arg0) bind(c)

end interface
contains
end
end module
2 changes: 1 addition & 1 deletion tests/unit_tests/test_export.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ contains
call test_cpp_bindgen_and_wrapper_compatible_type_b_impl(arg0, descriptor1)
end subroutine
end
end module
)?";

TEST(export, fortran_interface) {
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/test_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ contains
call qux_impl(arg0, descriptor1)
end subroutine
end
end module
)?";

TEST(generator, fortran_interface) {
Expand Down

0 comments on commit ab4478e

Please sign in to comment.