2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-04 17:31:10 +08:00
artiq/lit-test/test/monomorphism/error_notmono.py
whitequark 862ac1f90d lit-test/compiler -> lit-test/test.
Other directories in lit-test will host various parts of
the test harness.
2015-07-27 04:13:29 +03:00

10 lines
316 B
Python

# RUN: %python -m artiq.compiler.testbench.module +diag %s >%t
# RUN: OutputCheck %s --file-to-check=%t
# CHECK-L: ${LINE:+1}: error: the type of this expression cannot be fully inferred
x = int(1)
# CHECK-L: ${LINE:+1}: error: the return type of this function cannot be fully inferred
def fn():
return int(1)