artiq/lit-test/compiler/inferencer/exception.py

14 lines
256 B
Python
Raw Normal View History

# RUN: %python -m artiq.compiler.testbench.inferencer %s >%t
2015-06-29 03:48:15 +08:00
# RUN: OutputCheck %s --file-to-check=%t
# CHECK-L: Exception:<constructor Exception>
Exception
2015-06-29 05:31:06 +08:00
try:
pass
except Exception:
pass
except Exception as e:
# CHECK-L: e:Exception
e