mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 03:08:27 +08:00
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 ee as le
|
||||
|
||||
from artiq.language.core import int64
|
||||
from artiq.py2llvm.infer_types import infer_function_types
|
||||
from artiq.py2llvm import values
|
||||
from artiq.py2llvm import compile_function
|
||||
@ -22,10 +23,10 @@ def test_types(choice):
|
||||
foo = True
|
||||
bar = None
|
||||
|
||||
if choice:
|
||||
return 3
|
||||
if choice and foo and not bar:
|
||||
return d
|
||||
else:
|
||||
return x
|
||||
return x + c
|
||||
|
||||
class FunctionTypesCase(unittest.TestCase):
|
||||
def setUp(self):
|
||||
|
Loading…
Reference in New Issue
Block a user