2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-22 18:04:03 +08:00
artiq/lit-test/test/codegen/warning_useless_bool.py

6 lines
221 B
Python
Raw Normal View History

# RUN: %python -m artiq.compiler.testbench.signature +diag %s >%t
2015-07-23 00:09:14 +08:00
# RUN: OutputCheck %s --file-to-check=%t
# CHECK-L: ${LINE:+1}: warning: this expression, which is always truthful, is coerced to bool
bool(IndexError())