1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00

add breaking test

This commit is contained in:
schaeff 2021-08-30 18:00:48 +02:00
parent c6f7bbe4a7
commit edc8c015c4

View file

@ -0,0 +1,16 @@
def func<N>() -> bool:
for u32 i in 0..N do
endfor
u64[N] y = [...[0; N-1], 1] // the rhs should *not* be reduced to [1] because the spread is not empty
u64 q = 0
for u32 i in 0..N do
q = y[i]
endfor
return true
def main():
assert(func::<2>())
return