Skip to content

Commit 49545fe

Browse files
authored
Merge pull request #66 from sourceryinstitute/fix-tests
test(shallow/smart_pointer): make free() elemental
2 parents 74c37a1 + 9289c42 commit 49545fe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/shallow_m.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function construct() result(shallow)
2727
call shallow%start_counter
2828
end function
2929

30-
subroutine free(self)
30+
impure elemental subroutine free(self)
3131
class(shallow_t), intent(inout) :: self
3232

3333
deallocate(resource)

test/sp_smart_pointer_test_m.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function construct() result(object)
5656
call object%start_counter
5757
end function
5858

59-
subroutine free(self)
59+
impure elemental subroutine free(self)
6060
class(object_t), intent(inout) :: self
6161

6262
if (allocated(the_resource)) deallocate(the_resource)

0 commit comments

Comments
 (0)