Workaround lack of musttail in gcc

This commit is contained in:
2024-10-10 13:20:50 -07:00
parent a28283748c
commit a1c61962a1
2 changed files with 11 additions and 0 deletions

View File

@@ -164,6 +164,12 @@ def test_fixup_256():
cs.check(read(0, bytes([1]), bytes([2])))
def test_tailcall():
with DebugConflictSet() as cs:
cs.addWrites(0, write(bytes([1])))
cs.check(*[read(0, bytes([1])) for _ in range(100000)])
if __name__ == "__main__":
# budget "pytest" for ctest integration without pulling in a dependency. You can of course still use pytest in local development.
import argparse