This commit is contained in:
commit
568474d52f
1591 files changed
+528213
No files matched your search
@@ -0,0 +1,12 @@
|
||||
# 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")
|
||||
Reference in new issue
Block a user