2015-07-03 00:35:35 +08:00
|
|
|
# RUN: %python -m artiq.compiler.testbench.inferencer +diag %s >%t
|
2015-06-15 21:55:13 +08:00
|
|
|
# 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(**[])
|
|
|
|
|
2015-08-11 05:41:31 +08:00
|
|
|
# CHECK-L: ${LINE:+1}: error: the argument 'x' has been passed earlier as positional
|
2015-06-15 21:55:13 +08:00
|
|
|
f(1, x=1)
|
|
|
|
|
|
|
|
# CHECK-L: ${LINE:+1}: error: mandatory argument 'x' is not passed
|
|
|
|
f()
|