mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-21 09:26:29 +08:00
16 lines
486 B
Python
16 lines
486 B
Python
# RUN: %python -m artiq.compiler.testbench.inferencer +diag %s >%t
|
|
# RUN: OutputCheck %s --file-to-check=%t
|
|
|
|
a = 1
|
|
# CHECK-L: ${LINE:+1}: error: the width argument of int() must be an integer literal
|
|
int(1.0, width=a)
|
|
|
|
# CHECK-L: ${LINE:+1}: error: the argument of len() must be of an iterable type
|
|
len(1)
|
|
|
|
# CHECK-L: ${LINE:+1}: error: the argument of list() must be of an iterable type
|
|
list(1)
|
|
|
|
# CHECK-L: ${LINE:+1}: error: an argument of range() must be of a numeric type
|
|
range([])
|