mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-19 00:16:29 +08:00
862ac1f90d
Other directories in lit-test will host various parts of the test harness.
15 lines
347 B
Python
15 lines
347 B
Python
# RUN: %python -m artiq.compiler.testbench.inferencer +diag %s >%t
|
|
# 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
|