mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-24 10:54:02 +08:00
9 lines
328 B
Python
9 lines
328 B
Python
|
# RUN: %python -m artiq.compiler.testbench.inferencer +diag %s >%t
|
||
|
# RUN: OutputCheck %s --file-to-check=%t
|
||
|
|
||
|
# CHECK-L: ${LINE:+1}: error: if clauses in comprehensions are not supported
|
||
|
[x for x in [] if x]
|
||
|
|
||
|
# CHECK-L: ${LINE:+1}: error: multiple for clauses in comprehensions are not supported
|
||
|
[(x, y) for x in [] for y in []]
|