mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-05 01:36:39 +08:00
862ac1f90d
Other directories in lit-test will host various parts of the test harness.
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
|