2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-20 00:46:30 +08:00
artiq/lit-test/py2llvm/typing/builtin_calls.py

33 lines
795 B
Python
Raw Normal View History

2015-06-24 17:16:17 +08:00
# RUN: %python -m artiq.py2llvm.typing %s >%t
# RUN: OutputCheck %s --file-to-check=%t
2015-06-26 16:16:08 +08:00
# CHECK-L: bool:<built-in class bool>():bool
bool()
# CHECK-L: bool:<built-in class bool>([]:list(elt='a)):bool
bool([])
# CHECK-L: int:<built-in class int>():int(width='b)
int()
# CHECK-L: int:<built-in class int>(1.0:float):int(width='c)
int(1.0)
# CHECK-L: int:<built-in class int>(1.0:float, width=64:int(width='d)):int(width=64)
int(1.0, width=64)
# CHECK-L: float:<built-in class float>():float
float()
# CHECK-L: float:<built-in class float>(1:int(width='e)):float
float(1)
# CHECK-L: list:<built-in class list>():list(elt='f)
list()
# CHECK-L: len:<built-in function len>([]:list(elt='g)):int(width=32)
len([])
# CHECK-L: round:<built-in function round>(1.0:float):int(width='h)
round(1.0)