Skip to content

Commit 7349f36

Browse files
committed
test case
1 parent b18752b commit 7349f36

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

src/Libtask.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export TArray, tzeros, tfill, TRef # legacy types back compat
99

1010

1111
@static if isdefined(Core, :TypedSlot) || isdefined(Core.Compiler, :TypedSlot)
12-
# Julia v1.10 removed Core.TypedSlot
12+
# Julia v1.10 moved Core.TypedSlot to Core.Compiler
1313
# Julia v1.11 removed Core.Compiler.TypedSlot
1414
const TypedSlot = @static if isdefined(Core, :TypedSlot)
1515
Core.TypedSlot

test/issues.jl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,17 @@
5959
r = tf(1, 2)
6060
@test r == (c=3, x=1, y=2)
6161
end
62+
63+
@testset "Issue-Libtask-174, SSAValue=Int and static parameter" begin
64+
# SSAValue = Int
65+
function f()
66+
# this line generates: %1 = 1::Core.Const(1)
67+
r = (a = 1)
68+
return nothing
69+
end
70+
tf = Libtask.TapedFunction(f)
71+
r = tf()
72+
@test r == nothing
73+
end
74+
6275
end

0 commit comments

Comments
 (0)