mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-22 18:04:03 +08:00
862ac1f90d
Other directories in lit-test will host various parts of the test harness.
21 lines
512 B
Python
21 lines
512 B
Python
# RUN: %python -m artiq.compiler.testbench.inferencer +diag %s >%t
|
|
# RUN: OutputCheck %s --file-to-check=%t
|
|
|
|
# CHECK-L: ${LINE:+1}: error: cannot call this expression of type int
|
|
(1)()
|
|
|
|
def f(x, y, z=1):
|
|
pass
|
|
|
|
# CHECK-L: ${LINE:+1}: error: variadic arguments are not supported
|
|
f(*[])
|
|
|
|
# CHECK-L: ${LINE:+1}: error: variadic arguments are not supported
|
|
f(**[])
|
|
|
|
# CHECK-L: ${LINE:+1}: error: the argument 'x' is already passed
|
|
f(1, x=1)
|
|
|
|
# CHECK-L: ${LINE:+1}: error: mandatory argument 'x' is not passed
|
|
f()
|