Skip to content

Commit

Permalink
Add another exception volatile test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristian Larsson committed Jan 2, 2025
1 parent 11b621d commit a8aa3bc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/core_lang_auto/exceptions_volatile.act
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,24 @@ def fun1() -> int:
pass
return res

def fun2():
a = "FOOBAR2" # easy to find in C source
my_list = [1]
complete = True
if 1 == 1:
complete = False
for r in my_list:
complete = False
return complete

actor main(env):
out1 = fun1()
if out1 != 42:
print("Bad 1:", out1)
env.exit(1)

out2 = fun2()
if out2 != False:
print("Bad 2:", out2)

env.exit(0)

0 comments on commit a8aa3bc

Please sign in to comment.