Initial commit
Test (in pplus-core) / in-core (push) Failing after 28m44s

This commit is contained in:
alexm committed 2026-11-12 22:23:48 -05:00
commit 568474d52f
1591 files changed
+528213

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
# probe: values with a __deinit__ inside a loop and a branch
# status: the expected output is Programming+'s interpreter's prediction; corpus.py verify confirms or refutes it on godbolt
# expect-stdout: make keep
# expect-stdout: make loop0
# expect-stdout: drop loop0
# expect-stdout: pass 0
# expect-stdout: make loop1
# expect-stdout: odd pass uses loop1
# expect-stdout: drop loop1
# expect-stdout: make loop2
# expect-stdout: drop loop2
# expect-stdout: pass 2
# expect-stdout: after loop keep
# expect-stdout: drop keep
# expect-stdout: end
struct Tag(Movable):
var name: String
def __init__(out self, name: String):
self.name = name
print("make", name)
def __deinit__(deinit self):
print("drop", self.name)
def main():
var keep = Tag("keep")
for i in range(3):
var t = Tag("loop" + String(i))
if i == 1:
print("odd pass uses", t.name)
else:
print("pass", i)
print("after loop", keep.name)
print("end")