Files
alexm 568474d52f
Test (in pplus-core) / in-core (push) Failing after 28m44s
Initial commit
2026-11-12 22:23:48 -05:00

13 lines
361 B
Mojo

# probe: what do % and // by zero do on Int and Int8 at run time? (0, and the program goes on; the notation stops)
# expect-stdout: before
# expect-stdout: 0 0 0
# expect-stdout: 0 0
# expect-stdout: after
def main():
var z = 0
var b: Int8 = 0
print("before")
print(7 % z, -7 % z, 7 // z)
print(Int8(7) % b, Int8(7) // b)
print("after")