Skip to content

Commit 4551b55

Browse files
committed
Fix GC test on Windows
1 parent 5fe4ace commit 4551b55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/gc_test.nelua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ do -- finalizers
5050
end
5151
end
5252

53-
local foo: *Foo = gc_allocator:new(Foo{count=count})
54-
local foos: span(Foo) = gc_allocator:new(Foo{count=count}, 2)
53+
local foo: *Foo <volatile> = gc_allocator:new(Foo{count=count})
54+
local foos: span(Foo) <volatile> = gc_allocator:new(Foo{count=count}, 2)
5555
foos = (@span(Foo)){}
5656
foo = nilptr
5757
end

0 commit comments

Comments
 (0)