forked from M-Labs/artiq
20f5f8217d
In some cases (the `is` operator and wraparound arithmetics) the tests will only pass on ARTIQ Python. These are conditionally commented out.
12 lines
220 B
Python
12 lines
220 B
Python
# RUN: %python -m artiq.compiler.testbench.jit %s
|
|
# RUN: %python %s
|
|
|
|
def fib(x):
|
|
if x == 1:
|
|
return x
|
|
else:
|
|
return x * fib(x - 1)
|
|
assert fib(5) == 120
|
|
|
|
# argument combinations handled in lambda.py
|