artiq/lit-test/compiler/codegen/warning_useless_bool.py

6 lines
218 B
Python
Raw Normal View History

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