Skip to content

Commit ab4478e

Browse files
authored
End module with end module (#51)
1 parent 5a83fdf commit ab4478e

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/cpp_bindgen/generator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,6 @@ namespace cpp_bindgen {
162162
strm << get_fortran_generics();
163163
strm << "contains\n";
164164
strm << _impl::get_entities<_impl::fortran_wrapper_traits>();
165-
strm << "end\n";
165+
strm << "end module\n";
166166
}
167167
} // namespace cpp_bindgen

tests/regression/array/bindgen_regression_array.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ subroutine fill_array(arg0)
2626

2727
call fill_array_impl(descriptor0)
2828
end subroutine
29-
end
29+
end module

tests/regression/array/bindgen_regression_array_cu.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ subroutine fill_gpu_array(arg0)
4949

5050
call fill_gpu_array_impl(descriptor0)
5151
end subroutine
52-
end
52+
end module

tests/regression/simple/bindgen_regression_simple.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ subroutine print_number_from_cpp(arg0) bind(c)
1111

1212
end interface
1313
contains
14-
end
14+
end module

tests/unit_tests/test_export.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ contains
233233
234234
call test_cpp_bindgen_and_wrapper_compatible_type_b_impl(arg0, descriptor1)
235235
end subroutine
236-
end
236+
end module
237237
)?";
238238

239239
TEST(export, fortran_interface) {

tests/unit_tests/test_generator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ contains
9898
9999
call qux_impl(arg0, descriptor1)
100100
end subroutine
101-
end
101+
end module
102102
)?";
103103

104104
TEST(generator, fortran_interface) {

0 commit comments

Comments
 (0)