Skip to content

Commit aed5d14

Browse files
author
KDr2
committed
more test cases for stack allocated values
1 parent b62b8f8 commit aed5d14

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/clonetask.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ t = Task(f_ct) |> enable_stack_copying
1919
a = copy(t);
2020
@test consume(a) == 2
2121
@test consume(a) == 3
22+
@test consume(t) == 2
23+
@test consume(t) == 3
2224

2325
# Test case 2: heap allocated objects are shallowly copied.
2426

0 commit comments

Comments
 (0)