forked from M-Labs/artiq
test/py2llvm: clean up test_types function
This commit is contained in:
parent
6deaf7b81a
commit
58465e49fa
|
@ -6,6 +6,7 @@ from llvm import core as lc
|
||||||
from llvm import passes as lp
|
from llvm import passes as lp
|
||||||
from llvm import ee as le
|
from llvm import ee as le
|
||||||
|
|
||||||
|
from artiq.language.core import int64
|
||||||
from artiq.py2llvm.infer_types import infer_function_types
|
from artiq.py2llvm.infer_types import infer_function_types
|
||||||
from artiq.py2llvm import values
|
from artiq.py2llvm import values
|
||||||
from artiq.py2llvm import compile_function
|
from artiq.py2llvm import compile_function
|
||||||
|
@ -22,10 +23,10 @@ def test_types(choice):
|
||||||
foo = True
|
foo = True
|
||||||
bar = None
|
bar = None
|
||||||
|
|
||||||
if choice:
|
if choice and foo and not bar:
|
||||||
return 3
|
return d
|
||||||
else:
|
else:
|
||||||
return x
|
return x + c
|
||||||
|
|
||||||
class FunctionTypesCase(unittest.TestCase):
|
class FunctionTypesCase(unittest.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
|
|
Loading…
Reference in New Issue