lit-test: fix inferencer/error_class test (broken in b0c6b70).

This commit is contained in:
whitequark 2015-11-19 23:26:42 +08:00
parent 2543daa5cf
commit a04d0f8fbd
2 changed files with 8 additions and 6 deletions

View File

@ -8,9 +8,3 @@ class a(1):
class b:
# CHECK-L: ${LINE:+1}: fatal: class body must contain only assignments and function definitions
x += 1
class c:
pass
# CHECK-L: ${LINE:+1}: fatal: variable 'c' is already defined
class c:
pass

View File

@ -0,0 +1,8 @@
# RUN: %python -m artiq.compiler.testbench.inferencer +diag %s >%t
# RUN: OutputCheck %s --file-to-check=%t
class c:
pass
# CHECK-L: ${LINE:+1}: fatal: variable 'c' is already defined
class c:
pass