Skip to content

Commit 71fe7d8

Browse files
committed
Specifically test pointer(A) == pointer(A, firstindex(A)) for good measure
1 parent 1c62740 commit 71fe7d8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/runtests.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,6 +1402,8 @@ end
14021402
@test pointer(A) === pointer(parent(A))
14031403
@test pointer(a, 12) === pointer(parent(a), 12 + (1 - firstindex(a)))
14041404
@test pointer(A, 12) === pointer(parent(A), 12)
1405+
@test pointer(a) === pointer(a, firstindex(a))
1406+
@test pointer(A) === pointer(A, firstindex(A))
14051407
if VERSION v"1.5"
14061408
@test pointer(a') === pointer(parent(a))
14071409
@test pointer(A') === pointer(parent(A))

0 commit comments

Comments
 (0)