Skip to content

Commit

Permalink
test: Expose double return bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Et7f3 committed May 31, 2023
1 parent 41d26bd commit 653fcd9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Binary file added test/bytecode_3.8/00_double_return.pyc
Binary file not shown.
8 changes: 8 additions & 0 deletions test/simple_source/bug38/00_double_return.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
def main():
if input() == 0:
print("0")
return
if input() == 1:
print("1")
else:
printf("other")

0 comments on commit 653fcd9

Please sign in to comment.