forked from M-Labs/artiq
1
0
Fork 0
artiq/lit-test/test/inferencer/error_exception.py

15 lines
347 B
Python
Raw Normal View History

# RUN: %python -m artiq.compiler.testbench.inferencer +diag %s >%t
2015-06-29 05:31:06 +08:00
# RUN: OutputCheck %s --file-to-check=%t
try:
pass
# CHECK-L: ${LINE:+1}: error: this expression must refer to an exception constructor
except 1:
pass
try:
pass
# CHECK-L: ${LINE:+1}: error: cannot unify int(width='a) with Exception
except Exception as e:
e = 1